Google Sign-In DEVELOPER_ERROR (ApiException: 10): how to fix it
Why Google Sign-In on Android fails with DEVELOPER_ERROR, code 10 or “[28444] Developer console is not set up correctly”, and which SHA-1 and client ID to register.
Google Sign-In fails on Android with “com.google.android.gms.common.api.ApiException: 10:”, “PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null)” in older Flutter apps, DEVELOPER_ERROR in React Native, or, with Credential Manager, “[28444] Developer console is not set up correctly”. Code 10 is DEVELOPER_ERROR, which Google defines as “The application is misconfigured.” Your code is usually fine: Google doesn’t recognise the combination of package name, signing certificate and client ID your build is using.
Why it happens
Google identifies an Android app by its package name plus the SHA-1 fingerprint of its signing certificate. Each pair needs an Android OAuth client in the same Google Cloud or Firebase project as the Web client ID your app sends. The usual mismatches:
- The build is signed with a key you never registered. Debug builds, your release or upload key and Google Play’s app signing key all have different SHA-1s. Registering one doesn’t cover the others.
- It works locally but fails from Google Play. With Play App Signing, Google re-signs your app with its own key before users install it. Internal app sharing re-signs with yet another key.
- The wrong client ID is in the code. Credential Manager, Firebase and the React Native library all need the Web application client ID as the server client ID. Passing the Android client ID fails.
- The package name doesn’t match. A debug suffix or product flavor (com.example.app.debug) needs its own registered pair.
- The clients are in different projects, or the package name and SHA-1 pair is already registered in another Google Cloud or Firebase project. Each pair can exist in only one project.
- Firebase is out of date. You added a fingerprint but kept the old google-services.json, or Google isn’t enabled as a sign-in provider in Firebase Authentication.
Which key signed the build you’re testing?
| How the app got on the device | Signing key | Where to get its SHA-1 |
|---|---|---|
| Run from Android Studio, flutter run, npx expo run:android (debug) | Debug keystore | ./gradlew signingReport, or keytool -list -v -alias androiddebugkey -keystore ~/.android/debug.keystore (password: android) |
| Release APK you built and installed yourself | Your release or upload key | ./gradlew signingReport, or keytool -list -v -alias <alias> -keystore <file> |
| Built with EAS Build and installed directly | The keystore EAS stores for you | eas credentials, then the Android keystore details |
| Installed from Google Play, any track including internal testing | Google’s app signing key | Play Console → Protected with Play → Play Store protection → Manage Play app signing → App signing key |
Play App Signing is explained in more detail in the upload key vs app signing key guide. The Play Console can list more than one app signing key certificate, and apps using Google’s quantum-ready hybrid signing show three keys. Register every SHA-1 it lists.
How to fix it
- Confirm the package name: check applicationId for the variant you’re running, including any suffix.
- Collect the SHA-1 for every way you install the app (see the table): debug, your release key, and the Play app signing key.
- Without Firebase: in Google Cloud Console → Google Auth Platform → Clients, create one Android client per package name and SHA-1 pair. In the same project, make sure a Web application client exists. You don’t use the Android client ID in code; it only has to exist.
- With Firebase: open Project settings → General → Your apps → your Android app, and add each fingerprint under SHA certificate fingerprints. Download the new google-services.json and replace the old one. In Authentication → Sign-in method, make sure Google is enabled.
- Pass the Web client ID to your sign-in call (see the next table). With Firebase, the generated default_web_client_id string holds it.
- If Firebase or Google Cloud says “An OAuth2 client already exists for this package name and SHA-1 in another project”, delete the old client in that other project, or safelist its client ID in Firebase Authentication instead.
- Uninstall the app, reinstall the build you registered and try again. Test the version installed from Google Play too, since it’s signed differently from anything you build.
| Project type | Where the Web client ID goes |
|---|---|
| Android (Kotlin, Credential Manager) | GetGoogleIdOption.Builder().setServerClientId(WEB_CLIENT_ID), or GetSignInWithGoogleOption.Builder(serverClientId = WEB_CLIENT_ID) |
| Flutter (google_sign_in 7.x) | GoogleSignIn.instance.initialize(serverClientId: …), or a google-services.json that contains a web OAuth client (client_type 3) |
| React Native (@react-native-google-signin) | GoogleSignin.configure({ webClientId: … }) |
| Expo | Same library through its config plugin; get SHA-1s with eas credentials and from the Play Console |
| Firebase Authentication (Android) | getString(R.string.default_web_client_id), generated from google-services.json |
Questions people ask
Why does sign-in work in debug but not in the Play Store version?
Google Play re-signs your app with its app signing key. Its SHA-1 differs from your debug and upload keys, so register it too. Copy it from the App signing key section of the Play app signing page.
Do I need SHA-1 or SHA-256?
Google Sign-In matches the SHA-1 on an Android OAuth client. Firebase accepts both, so adding SHA-256 as well does no harm.
Do I put the Android client ID in my code?
No. Code takes the Web client ID. The Android client only needs to exist in the same project, with the right package name and SHA-1.
Is DEVELOPER_ERROR ever caused by the user’s device?
Almost never. Code 10 means the app is misconfigured, and Google treats it as fatal. If it happens for everyone on one build, look at signing and client IDs.
Sources
- Google: CommonStatusCodes.DEVELOPER_ERROR
- Google: Authenticating your client (getting SHA-1)
- Android Developers: Implement Sign in with Google with Credential Manager
- Android Developers: Migrate from legacy Google Sign-In
- Play Console Help: Use Play App Signing
- Firebase: Authenticate with Google on Android
- Firebase Help: An OAuth2 client already exists for this package name and SHA-1
- React Native Google Sign In: Troubleshooting
Check your own name
Domains, both app stores, bundle IDs and every live site using the name, in under a minute.
Check a name