Skip to content Skip to sidebar Skip to footer

Updating The Version Of Com.google.android.gms To 15.0.2

I have updated my Firebase SDK version. But theres error of updating the version of com.google.android.gms to 15.0.2. I tried to make firebase and google services of same version b

Solution 1:

Try Below Code:

1.build.gradle(gradle)

change :

classpath 'com.google.gms:google-services:3.2.0'

To :

  classpath 'com.google.gms:google-services:3.2.1'

follow below link:

https://stackoverflow.com/a/50152496/6920195

Solution 2:

For anyone checking this, the main reason you get this conflict issue is because you are using an older version of Android Studio.

You need to do the following:

Upgrade Android Studio to version 3.1

add:

classpath 'com.google.gms:google-services:3.3.0'

to the (Top-level) build.gradle file, then you will be able to use the newest versions.

Check the below for more information:

Announcing the new SDK Versioning

Compilation failed to complete:Program type already present: com.google.android.gms.internal.measurement.zzabn

Solution 3:

A device running Android 4.0 (Ice Cream Sandwich) or newer, and Google Play services 15.0.0 or higher

If you want to use 15.0.2 then

  • Use Latest gms version.
  • Upgrade Android Studio Version.

DEMO

 dependencies {
        classpath 'com.android.tools.build:gradle:3.1.2'
        classpath 'com.google.gms:google-services:3.3.0' 
    }

Read Firebase Android Release Notes.

FYI

Latest SDK versions

Firebase Core     com.google.firebase:firebase-core:15.0.2
Ads               com.google.firebase:firebase-ads:15.0.0
Analytics         com.google.firebase:firebase-analytics:15.0.2
App Indexing      com.google.firebase:firebase-appindexing:15.0.0
Authentication    com.google.firebase:firebase-auth:15.1.0
Cloud Firestore   com.google.firebase:firebase-firestore:16.0.0
Cloud Functions   com.google.firebase:firebase-functions:15.0.0
Cloud Messaging   com.google.firebase:firebase-messaging:15.0.2

After change Clean-Rebuild-Run.

NOTE

If the same problem coming then DOWNGRADLE your version. Use 12.0.1.

Solution 4:

Verify you have versions complying to the versions here

Post a Comment for "Updating The Version Of Com.google.android.gms To 15.0.2"