i am new in androidstudio. i have done integration of google in eclipse but am having issues in studio. i am following step by step from this site : https://developers.googl
With the latest version (2.2.2) what I had to do in order to fix this issue was to add the line below as a dependency into my app/build.gradle
file
compile 'com.google.android.gms:play-services-auth:9.8.0'
Hope it helps.
done!
(note: make sure you are connected to the internet.)
I had the same issue, add compile 'com.google.android.gms:play-services-auth:10.0.1 (your project's latest version) in your app level gradle file.
Put apply plugin: 'com.google.gms.google-services'
beneath apply plugin: 'com.android.application'
.
Add compile 'com.google.android.gms:play-services-auth:8.3.0'
inside dependencies
block. This will add related dependencies to your project.
I faced this issue. I solved it by adding this line in app level gradle file:
apply plugin: 'com.google.gms.google-services'
(at the bottom of the file (important))
and this line in app level dependencies section,
compile 'com.google.android.gms:play-services-auth:11.0.4'
(latest version, at the time when I am writing this answer)
Here's the link to the documentation.
Add the dependencies for Firebase Authentication and Google Sign-In to your app-level build.gradle file:
compile 'com.google.firebase:firebase-auth:10.0.1'
compile 'com.google.android.gms:play-services-auth:10.0.1'