Skip to content Skip to sidebar Skip to footer

Incompatible Firebase Libraries

I use the latest version of com.google.firebase:firebase-core:16.0.3 and the latest version of com.google.firebase:firebase-messaging:17.3.1. But they depend on the different versi

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:


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"