question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error 12500 on Google Sign In

See original GitHub issue

Step 1: Are you in the right place?

Yes

Step 2: Describe your environment

  • Android Studio version: 3.4.2
  • Firebase Component: Authentication
  • Component version:
    implementation 'com.google.firebase:firebase-auth:18.0.0'
    implementation 'com.google.android.gms:play-services-auth:17.0.0'

Step 3: Describe the problem

I used this code as it is without any change.

I created a new Firebase project, then I performed all the important steps:

  • Used Latest Google Play support libraries and Firebase libraries
  • Added DEBUG SHA-1 Key in console
  • Enabled Google Sign-In Method
  • Added support email for authentication.
  • Checked that my device is having the latest Google Play Services installed.

After performing this, downloaded latest google-services.json and imported in the project. Though it is showing me error 12500.

Then, I again checked the Google Cloud API Console OAuth2.0 page and checked my URL and it’s correct.

After this, I created 3 different projects, with different accounts and performed the same things again and again. Though I didn’t get success. Please Help me in that issue. I tried all other authentications like PhoneAuth, EmailAuth, etc. But an error occurs in Google Sign-In only.

Steps to reproduce:

While signing in with Google, It fails and then here is a log.

2019-07-26 07:54:38.432 31194-31194/com.example.firebaserecyclerpagination W/GoogleActivity: Google sign in failed
    com.google.android.gms.common.api.ApiException: 12500: 
        at com.google.android.gms.common.internal.ApiExceptionUtil.fromStatus(Unknown Source)
        at com.google.android.gms.auth.api.signin.GoogleSignIn.getSignedInAccountFromIntent(Unknown Source)
        at com.google.firebase.quickstart.auth.kotlin.GoogleSignInActivity.onActivityResult(GoogleSignInActivity.kt:76)
        at android.app.Activity.dispatchActivityResult(Activity.java:7109)
        at android.app.ActivityThread.deliverResults(ActivityThread.java:4192)
        at android.app.ActivityThread.handleSendResult(ActivityThread.java:4239)
        at android.app.ActivityThread.-wrap20(ActivityThread.java)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1599)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:165)
        at android.app.ActivityThread.main(ActivityThread.java:6375)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:912)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:802)

Relevant Code:

I used this code as it is without any change.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
PatilShreyascommented, Jul 26, 2019

Oh okay. Thanks.

1reaction
samtsterncommented, Jul 26, 2019

@PatilShreyas can you try setting an email and logo in the “OAuth consent screen” settings in the Google Cloud console?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Sign In error 12500 - android - Stack Overflow
Seems your SHA1 is overwritten by Google play store. Check in your google play store, launch panel, under app ...
Read more >
Anyone having google sign in error 12500? : r/Firebase - Reddit
I was recently having this error 12500 and then found out a lot of people are having it too. If you would like...
Read more >
GoogleSignInStatusCodes | Google Play services
when seeing this error code, there is nothing user can do to recover from the sign in failure. Switching to another account may...
Read more >
12500, an Android Developer's nightmare…
Debugging the error · Attempt 1 : Checking if I missed enabling Google Sign-in on Firebase · Attempt 2: Checking if the project...
Read more >
Troubleshooting & FAQ for Android and Firebase
Google Sign-in is showing the error "12500:" after I released my app. How do I fix it? ... Was this helpful? ... Except...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found