I try to implement Google login in my Firebase connected Android app. When I run the app and press Google Sign In button - nothing happen. And I receive this error in onActi
I had the same issue. After 2 days of pain, I observed that my release SHA1 was incorect (I used to get it using the keytool in java/bin and it gave me a bad SHA1. Probably because now Android Studio uses its own java package and not the JDK). Better way to get the corect SHA1 here SHA-1 fingerprint of keystore certificate
Had the same issue. But worked fine after I cleaned and rebuilt the project. :D
Click Here (Google Developer guide line) and create new project for Firebase console this link is set with default setting, so you don't need to add it manually
While creating the OAuth key, you need to make sure you are giving correct package name. This means the package name that comes in your manifest file.
If you are using multiple modules (e.g. some library like FirebaseUI-Android), then make sure while creating the key, you use the package name from which you request Google authentication.
If your app is on release mode/production, then you have to get the SHA1 from your-release-store.keystore. If your app is on development mode, then you have to get the SHA1 from your-debug-key.keystore. Copy all the SHA1 to your Firebase project settings > add fingerprint.
This is how to get the SHA1 from your keystore file:
keytool -exportcert -keystore ~/pathtoyourkeystore/yourfile.keystore -list -v
If Google Play App Signing is enabled for your app, then it will replace your release signing key with the one on Google's server before publishing.
You can check if it is enabled from: Google Play Console -> Release Management -> App Signing.
In my case, to resolve the error I had to: