I'm in the process of incorporating Google sign-in into my app, but I'm getting errors in Android Studio when trying to build the project. I'm including 'com.google.android.gms:play-services-auth:9.0.2'
as a dependency in my app-level gradle file and 'com.google.gms:google-services:2.0.0-alpha6'
as a dependency in my project-level gradle file. Building the project gives me the error: Error:Failed to resolve: com.google.android.gms:play-services-measurement:9.0.2
with an option to "Install Repository and sync project", but clicking this option does nothing. I have apply plugin: 'com.google.gms.google-services'
at the end of the app-level gradle file. There are no other instances where I'm using com.google.android.gms:play-services-*
dependencies. I have "Google Play services" installed via the SDK Manager. Any help would be appreciated and I can provide more information as needed.
I updated the project-level build.gradle to
'com.google.gms:google-services:3.0.0'
and it worked for me. Hope that helps!
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