3

I have registered my app on the API Console API Console

You can see here that the SHA 1 key matches SHA 1 key from console

And the package name from the manifest matches as well manifest

App signing is configured app signing

And is in use by the debug build enter image description here

And the sheets API is enabled
enter image description here

And yet every time my code tries to interact with a sheet I get an Exception

Caused by: com.google.android.gms.auth.GoogleAuthException: UNREGISTERED_ON_API_CONSOLE

I have done much googling on this, and found many people with the same issue, but the solution for them was to register their debug fingerprint on the API console, which I have done.

I have also generated a separate keystore and key for production, registered that on the API console and then built a signed APK but to no avail.

I have been trying to figure this out for days, I keep coming back to it and not making any headway. What am I missing?

lbenedetto
  • 2,022
  • 1
  • 21
  • 39

1 Answers1

0

You may also check if the error was caused by misspell in package name in AndroidManifest.

Additional reference:

  • GoogleCalendarAPI Unregistered on API console

    Ensure that you have annotated your Cloud Endpoints API correctly with the clientIds and audiences. The Android Audience value is the same as that of the Web Client Id. Make sure you have deployed the updated API and regenerated the Endpoints API sources for inclusion in your Android application.

Community
  • 1
  • 1
abielita
  • 13,147
  • 2
  • 17
  • 59