All firebase libraries must be either above or below 14.0.0

31,745

Solution 1

Turns out I forgot to change the version number for com.google.android.gms:play-services-ads, switched it to 15.0.0 and it worked.

Here's a blog by Google that provides more information. Announcing new SDK versioning in Google Play services and Firebase

Solution 2

apply plugin: 'com.google.gms.google-services'

put it under this line.

apply plugin: 'com.android.application'

it worked for me.

Solution 3

Remove this from App level gradle

implementation 'com.google.android.gms:play-services-maps:15.0.0'

and then try these versions

compile 'com.google.firebase:firebase-core:11.8.0'
compile 'com.google.firebase:firebase-messaging:11.8.0'
compile 'com.google.firebase:firebase-database:11.8.0'
compile 'com.google.firebase:firebase-auth:11.8.0'

this one worked for me... tanx

Share:
31,745
Jude Fernandes
Author by

Jude Fernandes

I am a partner and one of the co-founders of Octalogic Tech located in Goa. We craft beautifully designed softwares and websites along with mobile apps.

Updated on November 21, 2020

Comments

  • Jude Fernandes
    Jude Fernandes over 3 years

    I have checked my app build.gradle file and these are the only lines that are related to firebase in them

    /***
     * Firebase
     */
    implementation 'com.google.firebase:firebase-core:15.0.0'
    implementation 'com.google.firebase:firebase-messaging:15.0.0'
    implementation('com.crashlytics.sdk.android:crashlytics:2.9.1@aar') {
        transitive = true
    }
    implementation 'com.google.firebase:firebase-ads:15.0.0'
    

    I do not have any library that makes use of firebase so I don't think there can be an issue with a library using an older version.

    The problem is I can't build gradle, clean project or rebuild project with the new v15 version of firebase as it keeps throwing the error All firebase libraries must be either above or below 14.0.0