-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sign-in Failed - Android #11
Comments
@gkaldevrel could you have a look? |
@kroikie who worked on this component. |
Same error. Any headway? EDIT: After several hours of looking for a solution, it turns out I had two debug.keystore files and I had tried with both SHA1 values but I dunno whether the app wasn't updating each time I switched. Anywho, the easiest way to find your actual SHA1 is to do what this video says: https://www.youtube.com/watch?v=m_9tk7ME4ZU [Basically, in Android Studio, open the Gradle menu on the far right, open android-start from the drop down (refresh if nothing is showing), open Tasks, open android, double click signingReport. ] Get your SHA1 key from there, and go create a new Firebase project and in the console, use that SHA1 key after clicked "Add firebase to Android".. follow the tutorial from there. Restart your device, and tadaa. At least for me, it worked, and I'd been at it for hours. |
Well finally login , make a new project, after get the sha1 code in Gradle->Android-start->Tasks->singningReports, put the new google-services.json on src folder and uninstall app ..... Run the project! and voilà , happy coding! |
@crearo is this still an issue for you. If so I would double check that you are using the correct SHA1 and package name for your project, also be sure that you are including the correct google-services.json file. |
I'll try again in a couple days and update. |
I have got the same issue: Google Sign In failed. I've tried setting SHA1 from signingReport in Firebase Console and updating google.services.json file but app still doesn't work. |
Are you getting 12501 as the error code? If yes, and you've made sure the SHA1 keys, package names match, then that's odd. Could you double check everything's alright? If you haven't already, this blogpost might help. |
The blogpost you've written helped me a lot. I've generated new keystore and now it works! Thank you. |
I am confused about how the completed chat sample code works just fine without having to do any of the above? I downloaded the completed sample code, could run on both device and emulator and be able to log in with google just fine. And obviously the sha1 in the firebase project wouldn't match my computers sha1, so how does that work when it doesn't work when I follow these steps implementing into an existing project I have. I was able to get it to work on my emulator by adding my sha1 to the fire base console project, however when I run on device I still get the Google signing failed error. |
I am also so confusing to run the app at Samsung S4 that at the beginning "class for com.google.firebase.auth not found." and end up "sign-in" not successful. I tried to download the JSON file again but it still not work. log: 12-09 23:28:35.697 5108-5108/? D/ResourcesManager: creating new AssetManager and set to /data/app/com.google.firebase.codelab.friendlychat-1/base.apk ... "12-09 23:29:19.069 5108-5108/com.google.firebase.codelab.friendlychat E/SignInActivity: Google Sign In failed." |
Update your Google play services to 9.4.0 or above
…On 9 Dec 2016 10:10 p.m., "lumleon" ***@***.***> wrote:
I am also so confusing to run the app at Samsung S4 that at the beginning
"class for com.google.firebase.auth not found." and end up "sign-in" not
successful.
I tried to download the JSON file again but it still not work.
log:
12-09 23:28:35.697 5108-5108/? D/ResourcesManager: creating new
AssetManager and set to /data/app/com.google.firebase.
codelab.friendlychat-1/base.apk
12-09 23:28:35.727 5108-5108/? I/InstantRun: Instant Run Runtime started.
Android package is com.google.firebase.codelab.friendlychat, real
application class is null.
12-09 23:28:37.849 5108-5108/com.google.firebase.codelab.friendlychat
W/art: Verification of void com.google.firebase.FirebaseApp.() took
101.837ms
12-09 23:28:38.830 5108-5225/com.google.firebase.codelab.friendlychat
W/DynamiteModule: Local module descriptor class for
com.google.firebase.auth not found.
12-09 23:28:38.900 5108-5225/com.google.firebase.codelab.friendlychat
W/DynamiteModule: Local module descriptor class for
com.google.firebase.auth not found.
...
"12-09 23:29:19.069 5108-5108/com.google.firebase.codelab.friendlychat
E/SignInActivity: Google Sign In failed."
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEwiK499_wP3ROQvgcEf1Bcg3_8a89xRks5rGbW4gaJpZM4IiO_7>
.
|
Hi, I had already update the the latest Google Play Services to Rev 38 and the Repository to Rev 40 . Then, I noted that SHA is required for Google Sign-in. So I updated the SHA and signed a release of the APK and installed the application. However, the situation is the same. |
Okay, have you set authentication methods in firebase console?
…On 9 Dec 2016 10:59 p.m., "lumleon" ***@***.***> wrote:
Hi, I had already update the the latest Google Play Services to Rev 38 and
the Repository to Rev 40 . The problem is the same.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEwiKx9X9iWrRKy4-vv8ZJOB_zunjWghks5rGcFAgaJpZM4IiO_7>
.
|
yes, the Google sign-in method was enabled |
pkg: /data/local/tmp/com.google.firebase.udacity.friendlychat |
While trying to sign-in, I keep getting the following error.
E/SignInActivity: Google Sign In failed. Status{statusCode=unknown status code: 12501, resolution=null}, null
I suspect it's the GoogleSignInOptions
requestIdToken()
method causing the issue. I changed the string passed as thedefault_web_client_id
to the credentials of server key auto generated in Google APIs credentials. That doesn't seem to work either.Am I missing something, or doing something wrong?
The text was updated successfully, but these errors were encountered: