[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 am unable to build my app after upgrading firebase-core dependency to 16.0.3. If I supply the global firebaseVersion as 16.0.3, I get the error:
- What went wrong:
Failed to capture snapshot of input files for task ':tipsi-stripe:compileDebugAidl' property 'importDirs' during up-to-date check.
> The library com.google.firebase:firebase-iid is being requested by various other libraries at [[17.0.2,17.0.2]], but resolves to 16.0.0. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.
If I do _not_ include firebaseVersion I get:
Failed to capture snapshot of input files for task ':tipsi-stripe:compileReleaseAidl' property 'importDirs' during up-to-date check.
The library com.google.firebase:firebase-analytics is being requested by various other libraries at [[16.0.3,16.0.3]], but resolves to 11.8.0. Disable the plugin and check your depen
tipsi-stripe version: 5.6.0tipsi-stripe version where the issue was not reproduced (if applicable): n/a (also had issue with 5.2.1)com.google.firebase:firebase-core version: 16.0.3com.google.android.gms:play-services-base version: 15.0.1build.gradle and app/build.gradle
For Android, please provide the following sections from android/app/build.gradle:
ext {
buildToolsVersion = "27.0.3"
minSdkVersion = 16
compileSdkVersion = 27
targetSdkVersion = 26
supportLibVersion = "27.1.1"
firebaseVersion = "16.0.3"
googlePlayServicesVersion = "15.0.1"
}
multiDexEnabled true
@rahsheen - I'm having a similar issue. Any luck with a fix/workaround?
I'm looking at this: https://stackoverflow.com/questions/50577437/com-google-android-gmsplay-services-measurement-base-is-being-requested-by-vari
Same here!
@rahsheen @beausmith Did you fixed it?
@EugeValeiras Not fixed… still trying… 😐 Please post any successes here.
Perhaps useful are things you can find in the Network Graph… this one was interesting:
There are many more commits ahead of the official master branch in the Network Graph view which may contain a fix for this.
Your not alone 💯
The library com.google.firebase:firebase-iid is being requested by various other libraries at [[17.0.2,17.0.2]], but resolves to 16.0.0.
What if you set firebase to the 17.0.2 version?
@cybergrind It is requesting then the 17.0.2. I am on react native firebase v5 and they install instructions point to 16.0.3. I will give it a try but I am not sure if this will work.
*Edit: * nope..
An update… so I originally got this error in the following scenario:
tipsi-stripe requiring older versions of firebase-coreThen decided to try alternate route…
Now I know that I probably won't be able to upgrade to React Native until tipsi-stripe is updated to work with latest versions of react-native. 🎉
your_project/build.grade
Downgrade google-services and have a nice day
buildscript {
ext {
buildToolsVersion = "27.0.3"
minSdkVersion = 21
compileSdkVersion = 27
targetSdkVersion = 26
supportLibVersion = "27.1.1"
googlePlayServicesVersion = "15.0.1"
androidMapsUtilsVersion = "0.5+"
firebaseVersion = "16.0.3"
}
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.google.gms:google-services:3.2.1' // Downgrade any version to 3.2.1, until lib is updated
}
}
You can't just downgrade google-services if you have other dependencies that rely on an up-to-date version.
@rahsheen for me it is working with 10+ third party libs. This is a temp. solution, but if you have a better one, let me know.
@NikoMontana I can confirm this worked for me too. Thanks!
Any fix yet?
@NikoMontana this fix now breaks Firebase Messaging.
Any fix yet?
Is that with latest tipsi-stripe and react-native? @ronilitman
@rahsheen Yes, RN 0.59.8 and tipsi-stripe 7.5.0. My error message is a little bit diffrent:
The library com.google.firebase:firebase-iid is being requested by various other libraries at [[18.0.0,18.0.0]], but resolves to 17.1.2.
I tried to use various of versions, now my versions are:
implementation 'com.google.firebase:firebase-core:16.0.9'
implementation 'com.google.firebase:firebase-messaging:18.0.0'
Any suggestions? Thank you!
@ronilitman
Does specifying a specific firebaseVersion as in #375 help at all? I haven't had a chance to try that yet.
I'm actually using other firebase dependencies myself and was getting this issue. I updated my google services to 4.2.0 instead of downgrading it.
classpath 'com.google.gms:google-services:4.2.0'
Any fix yet?
Most helpful comment
Downgrade
google-servicesand have a nice day