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

jmc34 picture jmc34 · Feb 5, 2016 · Viewed 9.4k times · Source

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 ?

Answer

Steven picture Steven · Feb 7, 2016

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