Incompatible Firebase Libraries
Solution 1:
I got similar issue after updating to com.google.gms:google-services:4.0.1
.
I have fixed by adding
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
in app/build.gradle file after apply plugin: com.google.gms.google-services
.
it looks like this
{
dependencies {
//......
}
apply plugin: 'com.google.gms.google-services'
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
}
Solution 2:
Use the latest update for firebase-messaging (17.3.2), this update fixes this particular incompatibility issue.
Solution 3:
You can check the version check implementation.
https://github.com/firebase/firebase-android-sdk/blob/15be8218dbb890dbc79deb858addece0ad255831/firebase-installations/customer-lint-checks/src/main/java/com/google/firebase/installations/lint/IncompatibleIidVersionDetector.kt#L98
It seems that the iid version should be 20.1 or higher.
And to find the libraries that need to be updated to update the iid, you can find the firebase libraries that depend on the iid by doing the following:
./gradlew -q app:dependencyInsight --configuration debugCompileClasspath --dependency firebase-iid
Post a Comment for "Incompatible Firebase Libraries"