I am getting a huge amount of errors while trying to build my android project after installing this library. on iOS it works seemlessly but for some reason android is having none of it. Ive looked through the other issues and cannot see anything of the same ilk.
i linked via react-native link tipsi-stripe and got the errors so I went through the manual setup and everything is setup correctly. I have also tried cleaning the project using ./gradlew clean but with no luck.
tipsi-stripe version: 5.6.0com.google.firebase:firebase-core version: 15.0.2com.google.android.gms:play-services-base version: 15.0.0build-logs
android/app/build.gradle
Build dosnt get this far
Thanks in advance
@danwoodbury Please, do not ignore any section of the issue template — it's not difficult.
Look into YOUR android/app/build.gradle and compare with https://github.com/tipsi/tipsi-stripe/blob/master/example/android/app/build.gradle
thanks for the pointer @isnifer. I had already done what you suggested and just did it again for safe measure but to no avail. The main difference i see is that I am using grade 4.4 due to it being a requirement for firebase, but im not sure that would make much difference?
Here is my build.gradle file incase I have missed something. I have obviously sanitized it and stripped keys etc...
I have updated the initial comment to adhere to the template and added my build.gradle file.
Thanks
@danwoodbury try to add these deps to your android/app/build.gradle. Hope it helps!
// Where to find the latest version for Google Modules
// https://developers.google.com/android/guides/setup
implementation 'com.google.android.gms:play-services-base:15.0.1'
implementation 'com.google.android.gms:play-services-wallet:16.0.0'
Could not find play-services-base.jar (com.google.android.gms:play-services-base:15.0.1).
Searched in the following locations:
https://jcenter.bintray.com/com/google/android/gms/play-services-base/15.0.1/play-services-base-15.0.1.jar
Can't update play-services-base to 15.0.1
@isnifer unfortunately not. I am getting the same errors still after adding play-services-wallet and upgrading play-services-base, even after a clean
ok I have got a stage further. It turned out there was a setting forcing libraries to use an older version of play services, i think it was left over from an older issue. It now goes through the tipsi setup stage which is great but fails at the end with an error of:
Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.
> com.android.build.api.transform.TransformException: Error while generating the main dex list.
I have updated my gists with my current setup:
https://gist.github.com/danwoodbury/69f75393e747f3781b2c5338c9c59c1b
@danwoodbury try change com.stripe:stripe-android:6.0.0 to com.stripe:stripe-android:6.1.2 in node_modules/tipsi-stripe/android/build.gradle
@TarasDumych you are a trooper. That works. Not working completely in app but i will figure that out. Only thing is how would I make this change permanent?
@danwoodbury Noway. Only make a PR and update the library. I just left a note in Readme.md in my project(temporary solution).
@TarasDumych i have just added implementation 'com.stripe:stripe-android:6.1.2' to my own dependencies and it works fine, obviously still temporary-ish until i can run this package without it, but it enables our project to run through a ci
adding
implementation 'com.google.android.gms:play-services-base:15.0.1'
implementation 'com.google.android.gms:play-services-wallet:16.0.0'
solved the problem
Most helpful comment
adding
implementation 'com.google.android.gms:play-services-base:15.0.1'implementation 'com.google.android.gms:play-services-wallet:16.0.0'solved the problem