Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Google Sign In fails with error code 8 (no message)

I am trying to integrate Google Sign in to my application, but I get errors that I cannot understand.

I have configured everything according to the tutorial here, but it would not authenticate me. I am presented with the login panel that shows my accounts, and the login activity OnActivityResult fires, when looking into the GoogleSignInResult, I have a Status with a statusCode 8 and no message.

It seems to be related to this, but it is a bit confusing.

Any idea ?

like image 896
jmc34 Avatar asked Feb 05 '16 16:02

jmc34


People also ask

What does Google sign in error 8 mean?

If you get error code 8 ( INTERNAL_ERROR ), please double check your app registration in dev console. Note that every registered Android client is uniquely identified by the (package name, Android Signing Certificate SHA-1) pair.

How do I fix Google sign in error?

Refresh, Update, or Reinstall Google Chrome. If you know your username and password, but you can't sign in to your Google Account, you can refresh the Google Chrome browser and try to log in again. You can also update Chrome to the latest version or reinstall Chrome browser to have a try again.


1 Answers

Check out the answer to this question: An INTERNAL_ERROR (8) occurred when requestEmail from GoogleSignInOptions on Android

If you get error code 8 (INTERNAL_ERROR), please double check your app registration in dev console. Note that every registered Android client is uniquely identified by the (package name, Android Signing Certificate SHA-1) pair. If you have multiple package names / signing certificate for your debug and production environments, make sure to register every pair of them. To verify:

  1. Open the Credentials page and select your project
  2. Make sure every pair has an Android typed OAuth 2.0 client IDs. To create a new OAuth 2.0 client ID for your Android client, select New Credentials->OAuth2 Client ID from the dropdown, select Android and input your Package name / Signing-certificate fingerprint there.

To get your signing key certificate SHA-1:

Standard Debug Key keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android

Other (Custom) Key keytool -list -v -keystore $YOUR_KEYSTORE_LOCATION

like image 96
Steven Avatar answered Sep 26 '22 12:09

Steven