[x] I have read an installation guide
[x] I know that for an iOS I need to install pods because I've read the installation guide
[x] I have read a linking guide and checked that everything is OK like in manual linking guide
[x] I know that before using tipsi-stripe I need to set options for my app as described in usage guide
I'm building an Android app in react-native and I need to add a payment page with Stripe. After I run yarn add tipsi-stripe and react-native link tipsi-stripe builds are failing with an exception for task ':app:transformClassesWithDexBuilderForDebug'.
tipsi-stripe version: 7.5.0tipsi-stripe version where the issue was not reproduced (if applicable): com.google.firebase:firebase-core version: com.google.android.gms:play-services-base version: For Android, please provide the following sections from android/app/build.gradle:
Sorry for creating this issue. I could fix this problem by adding these lines to android/app/build.gradle:
implementation 'com.android.support:design:27.1.0'
compile 'com.android.support:multidex:1.0.3'
compile (project(':tipsi-stripe')) {
exclude group: 'com.google.android.gms'
exclude group: 'com.google.firebase'
}
}
and also adding multiDexEnabled true to defaultConfig
God, you saved me. thanks very much.
Out of curiosity,
How could you come up with this solution?
I'm glad to hear it :) It cost me whole day of frustration.
I found the solution in one of the past GitHub issues but right now I can't remember exactly where.
Most helpful comment
Sorry for creating this issue. I could fix this problem by adding these lines to android/app/build.gradle:
and also adding
multiDexEnabled trueto defaultConfig