When I update my Google Play dependencies in my Gradle file from version 8.4.0 to 9.2.1, I get the following error:
Error:Failed to resolve: com.google.android.gms:play-services-measurement:9.2.1
This was not an issue when using version 8.4.0. I tried to include it as an explicit dependency but makes no difference. The specific dependencies I’m using are:
compile 'com.google.android.gms:play-services-maps:9.2.1'
compile 'com.google.android.gms:play-services-auth:9.2.1'
compile 'com.google.android.gms:play-services-plus:9.2.1'
I would be grateful for any pointers on why this is happening.
Try update google-services plugin in main build.gradle
file
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.0.0'
classpath 'com.google.gms:google-services:3.0.0'
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With