Android gives 'ERROR: DEVELOPER_ERROR' when signing in
See original GitHub issueWhen signing in using
await GoogleSignin.signIn();
It opens the dialog, I sign in but gives the 'ERROR: DEVELOPER_ERROR'
Steps to Reproduce
- Install react-native-google-signin and follow the setup guide for Android
- Import react-native-google-signin and make a function that
calls await GoogleSignin.signIn() - Sign in with your google account
- When the dialog closes the error occurs
Expected Behavior
- Opens dialog
- Signs in
- Returns userInfo, id and accesstoken
Actual Behavior
- Throws an error saying
'ERROR: DEVELOPER_ERROR'
Environment
- react-native: 0.60.4
- react-native-google-signin: 2.0.0
- play-services-auth: 15.0.1
- SDK version: 25
- Build gradle: 3.4.2
- Tried two newest versions of android, Q & Pie
Issue Analytics
- State:
- Created 4 years ago
- Reactions:54
- Comments:71 (1 by maintainers)
Top Results From Across the Web
React-native google signin gives Developer Error
run cd android && ./gradlew signingReport . Copy the SHA-1 hash and paste it into the firebase console under Android in Project Settings....
Read more >Question - developer error" for no reason - Unity Forum
Question Google play services Authenticate giving "Authentication failed - developer error" for no reason.
Read more >GoogleSignInStatusCodes | Google Play services
Google Sign In specific status codes, for use in Status#getStatusCode() . ... error code, there is nothing user can do to recover from...
Read more >BillingClient.BillingResponseCode - Android Developers
A user billing error occurred during processing. ... Misconfiguration of the app such as not signing the app or not having the necessary ......
Read more >App Distribution troubleshooting & FAQ - Firebase - Google
Android. This page provides troubleshooting help and answers to frequently asked ... "Untrusted Enterprise Developer" error when trying to run test app.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I fixed it by entering correct SHA-1 in firebase console. Problem was I was using following command for generating SHA-1 from my project directory
keytool -exportcert -list -v -alias androiddebugkey -keystore ~/.android/debug.keystoreHere path for the debug.keystore is in ~/.android folder which is different, my keystore was inside <project-dir>/android/app, So I followed this new path in command, which was in my project directory
keytool -exportcert -list -v -alias androiddebugkey -keystore ./android/app/debug.keystoreThen (1) copied the SHA-1, and (2) enter it in project of firebase console then (3) download the config file again and replace it in android/app folder then (4) remove the build and install again, it worked!
EDIT: For some reasons, on a few computer devices you also have to perform these steps. -> Close the terminal and uninstall the application from the mobile device. remove android/build folder and remove android/app/build folder. Now install again on your device.
If you get error like … Only one command is allowed: both -exportcert and -list were specified. Solution: remove -exportcert from command, thus command will be …keytool -list -v -alias androiddebugkey -keystore ./android/app/debug.keystore
for poor souls like me who used the android client id,
you have to add your web client id. not android client Id.
its quite obvious people might think they have to add the android client id since they are building it for android. but it is the web client id that you have to add.