-
Notifications
You must be signed in to change notification settings - Fork 658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Duplicate class com.stripe.android.uicore.address.AddressRepository_Factory #6590
Comments
Hi @malua could you show us your build.gradle? |
Sure!
|
It looks like your projects aren't using the same versions of the stripe SDKs (notably link is different). Can you update your project to use a variable in all the places you use the stripe SDK? If you search all the build.gradles for As for a long term fix, I'm looking into adding a BOM which should also help fix this issue in the future. |
Seeing a similar issue here, albeit a different project so take this info lightly.
As this is a react native project with an Android build and these are the libraries used:
|
Thank you! I am using a plugin for capacitor and this plugin defines the stripe android sdk itself. So they will have to update.
|
It looks like this was a real issue on our end, thanks for reporting. I opened up a PR with the fix. Thanks for the note @algera! It helped me to reproduce the issue. |
Hmm for some reason, I am still getting the error after updating the versions @stripe/stripe-identity-react-native@0.1.7 Execution failed for task ':app:checkDebugDuplicateClasses'.
|
Summary
I am following the guide to enable Google Pay for our Android app. But by adding the SDK like shown in the docs
implementation 'com.stripe:stripe-android:20.23.1'
I get the following error when building:
When I use 20.19.5 the error goes away and Google Pay works. Is there a way to force one of the 2 implementations?
Code to reproduce
Android version
I am targeting Android API Level 32.
Installation method
The gradle dependency.
Dependency Versions
kotlin:
./gradlew :dependencies | grep kotlin - does not have any output
stripe-android: does not have any output
Android Gradle Plugin: does not have any output
Gradle:
Gradle 7.4.2
Build time: 2022-03-31 15:25:29 UTC
Revision: 540473b8118064efcc264694cbcaa4b677f61041
Kotlin: 1.5.31
Groovy: 3.0.9
Ant: Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM: 11.0.11 (AdoptOpenJDK 11.0.11+9)
OS: Mac OS X 11.2 x86_64
SDK classes
The text was updated successfully, but these errors were encountered: