Android Studio all gms/firebase libaries must use the exact same version

Viewed 1962

This is my Gradle:app file

two muppets

Error I get when I try to rebuild: "All gms/firebase libaries must use the exact same version specification. Found versions 11.6.0, 10.2.0. Examples include com.google.android.gms:play-services-auth:11.6.0 and com.google.android.gms:play-services-location:10.2.0"

Anyone know how to get rid of the error?

3 Answers

Run ./gradlew app:dependencies to see what your transitive dependencies are (this will show what lib is depending on 10.2.0 for example)

I can see you add com.google.android.gms:play-services-auth:11.6.0 dependency in your gradle but not com.google.android.gms:play-services-location .Try adding compile "com.google.android.gms:play-services-location:11.6.0" to your dependencies, sync and rebuild the porject and also clean up the mess with other dependencies

Related