Google Sign In error 12500
Solution 1:
Error PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 12500: , null)
This 12500 Error can be solved by adding a support email address to your project in project settings. Open link https://console.firebase.google.com/
Select Your project and open settings tab.
Provide a valid support email and restart your application now.
Solution 2:
Check if SHA-1 fingerprints are added to the firebase project settings. If not,find SHA-1 fingerprint using
https://developers.google.com/android/guides/client-auth
Also, find the SHA-1 fingerprint of release key using
keytool -list -v -keystore <keystore path>
Remove <keystore path>
with the path of the key store.
Then add both SHA-1 fingerprints to firebase projects settings.
NB: Don't forget to replace google-services.json with updated google-services.json with new fingerprints. I lost two days on that.
While debug
Android studio automatically generate ~/.android/debug.keystore
on first debug build and use it to sign the app.
To get the SHA-1 run (password android
) (doc):
keytool -exportcert -list -v -alias androiddebugkey -keystore ~/.android/debug.keystore
This SHA-1
should be added to the app settings at firebase
to allow usage of google sign in capabilities while testing debug build.