Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 822
kac26 Avatar asked Nov 20 '17 17:11

kac26


2 Answers

I also had same error for the dependency version:

compile com.google.firebase:firebase-core:11.6.2'

I resolved it by adding this missing dependency:

compile 'com.google.android.gms:play-services:11.6.2'
like image 178
Karan Khara Avatar answered Nov 12 '22 12:11

Karan Khara


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

like image 21
John O'Reilly Avatar answered Nov 12 '22 12:11

John O'Reilly