Skip to content Skip to sidebar Skip to footer

All Gms/firebase Libraries Must Use The Exact Same Version Specification

All gms/firebase libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 15.0.0, 12.0.1. Examples include com.google.a

Solution 1:

You need to add a resolution strategy in your build.gradle file to tell which version of the library need to be used while building your application. The configuration might look something like this.

configurations.all {
    resolutionStrategy {
        force 'com.android.support:design:25.3.1'
        force 'com.android.support:support-v4:25.3.1'
        force 'com.android.support:appcompat-v7:25.3.1'
    }
}

Modify as per your requirement of the library version.

Solution 2:

As it says itself

Found versions 15.0.0, 12.0.1.

You should use same version for all google gms libraries.

Replace this line

compile'com.google.android.gms:play-services:12.0.1'

with this

compile'com.google.android.gms:play-services:15.0.0'

Solution 3:

First of all use the whole play service is just wrong unless you really need every single sub-package, but from your screenshot you are already using some sub-package. The use of the whole play service package could means you need multi dex support because you include a lot of not needed methods, Proguard is your friend in this case. So my response is: just remove that line.

Post a Comment for "All Gms/firebase Libraries Must Use The Exact Same Version Specification"