Common Google sign in error in Android. Error constant value: 10

Artem Mihelson
2 min readJan 4, 2021

Usually, when you develop Android app, you don’t have a release build variant at the point. As a result you register SHA-1 fingerprint of a debug variant in Firebase console. And this is fine until you release your app and find out that users can’t login via Google.

After some debugging you can observe the exception with the code 10, here is the official explanation:

The application is misconfigured. This error is not recoverable and will be treated as fatal. The developer should look at the logs after this to determine more actionable information.

Constant Value: 10

Basically this means incorrect configuration of SHA-1 fingerprint and/or Package Name within the Firebase console.

If you want to debug release candidate from Android Studio, you need to run Signing report for release build variant, get SHA-1 of release app and add it in console.

But we are interested in production users. In this case you need to go to the Play Console, Setup tab and open App Signing page. You should see two blocks — App signing certificate and Upload key certificate.

Upload key certificate SHA1 should be identical to that one you got in Android studio signing report.

But what you really need to let your users successfully sign in is App signing certificate SHA-1. Go copy it and past to Firebase console and you are done!

Here is the place you need to paste it:

Happy coding!

--

--

Artem Mihelson

Founder of Pills.Kit, Proximodoro and WidgetLingo apps