
Your Flutter app signs in with Google fine on your phone, then the build installed from Google Play throws `PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null, null)` the moment a tester picks an account. Google Sign-In ApiException: 10 in a Flutter release build almost always means the certificate that signed the installed APK is not registered for your package name in Firebase or Google Cloud. With Play App Signing, that certificate is Google's app signing key, not the upload key on your laptop. Below I show how to find all three keys, register them, and check the result with a small tested script before your next release.
Quick answer
ApiException: 10 is `DEVELOPER_ERROR`, which Google defines as "The application is misconfigured." Copy the SHA-1 and SHA-256 of the App signing key from Play Console (Protected with Play > Play Store protection > Manage Play app signing), add them to your Android app in Firebase project settings next to the debug and upload key fingerprints, download a fresh google-services.json, and ship a new build. On google_sign_in 7.x the same mistake usually reads "[28444] Developer console is not set up correctly" instead.
What this means for your app or business
If Google is the main way people log in, this bug locks every new Play Store user out of the app while it looks perfect in the developer's own testing. Reviews and refunds follow fast. The fix itself is configuration, not code: adding fingerprints takes about 15 minutes, and Google Cloud help says OAuth changes can take from 5 minutes to a few hours to take effect. You need a new build only if the google-services.json inside the app has to change, which is the normal case with Firebase. If nobody on the team has Play Console access to the app signing page, or the keys were set up by a previous developer, that is the moment to bring in help.
Why does Google Sign-In fail only in the Play Store build?
Google Sign-In on Android checks two things about the app that calls it: the package name and the SHA-1 of the certificate that signed the APK. Each pair must match an Android OAuth client in the same Google Cloud project as your web client. A Flutter app usually meets three different certificates in its life:
| Key | Who holds it | What it signs | Where to get the SHA-1 |
|---|---|---|---|
| Debug key | Your machine (~/.android/debug.keystore) | flutter run and debug APKs | keytool or ./gradlew signingReport |
| Upload key | You (upload-keystore.jks) | The AAB you upload, local release APKs | keytool or ./gradlew signingReport |
| App signing key | Every APK installed from Google Play, internal and closed testing included | Play Console, Play app signing page | |
| Upgraded app signing key | Play installs on newer Android versions after a key upgrade | Play Console, same page |
Play Console Help puts it plainly: because Google signs the final APK, you must register the Google-held app signing key fingerprint with your API providers, "not just your local upload key." So a build that works with flutter run --release (upload key) can still fail from the internal testing track (app signing key). If you are not sure which key your AAB is signed with, my post on an Android App Bundle signed with the wrong key walks through that first.

What does the error look like in google_sign_in 6.x and 7.x?
The exact text depends on the plugin's major version, because 7.0.0 moved Android to Credential Manager and replaced PlatformException with GoogleSignInException.
- google_sign_in 6.x (old Google Sign-In SDK):
PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null, null). The 10 isCommonStatusCodes.DEVELOPER_ERROR. - google_sign_in 7.x, missing or wrong SHA-1: developers report
GoogleSignInException(code GoogleSignInExceptionCode.unknownError, [28444] Developer console is not set up correctly., null)(flutter/flutter issue 178250). The plugin passes Credential Manager's message through and maps unrecognised errors tounknownError. - google_sign_in 7.x, no web client ID:
GoogleSignInException(code: GoogleSignInExceptionCode.clientConfigurationError, serverClientId must be provided on Android, null). - google_sign_in 7.x, silent config error: the `google_sign_in_android` README warns that some configuration errors make Credential Manager return
canceledright after the user picks an account, and the plugin cannot tell that apart from a real cancel.
How do I fix ApiException: 10 in a Flutter release build?
1. Get the debug and upload key fingerprints
# Debug key (default password: android)
keytool -list -v -alias androiddebugkey -keystore ~/.android/debug.keystore
# Upload key (use your own path and alias from android/key.properties)
keytool -list -v -keystore ~/upload-keystore.jks -alias upload
# Or let Gradle print every variant's SHA-1 and SHA-256
cd android && ./gradlew signingReportIf keytool complains that the keystore was tampered with or the password is wrong, fix that first; I covered the causes in Keystore was tampered with, or password was incorrect.
2. Copy the app signing key fingerprints from Play Console
Open your app in Play Console and go to Protected with Play > Play Store protection > Manage Play app signing. In the App signing key section, copy the SHA-1 and SHA-256. That is the menu path in Play Console Help today. Google's client authentication guide (updated 9 November 2026) still calls it "Release > Setup > App Integrity", an older label, so don't be thrown if a tutorial shows a different menu.
3. Add every fingerprint to the Firebase Android app
In the Firebase console, open Project settings > General, scroll to Your apps, select the Android app whose package name matches applicationId in android/app/build.gradle.kts, and click Add fingerprint for each SHA-1 and SHA-256. The Android OAuth client is keyed on the SHA-1, so that one matters most for sign-in. Then make sure Google is enabled under Security > Authentication > Sign-in method.
4. Download a fresh google-services.json and check the web client
Replace android/app/google-services.json with the new download. It should now hold one oauth_client entry with client_type: 1 per SHA-1 and one web client with client_type: 3. On 7.x the plugin reads that web client from the generated default_web_client_id resource as serverClientId. I pass it explicitly as well, so a shrunk resource can't break release builds:
import 'package:flutter/foundation.dart';
import 'package:google_sign_in/google_sign_in.dart';
/// Web client ID (client_type 3). Optional when google-services.json has one,
/// but passing it explicitly removes one moving part in release builds.
const webClientId = String.fromEnvironment('GOOGLE_WEB_CLIENT_ID');
Future<void> initGoogleSignIn() {
// Call once, at startup, before any other GoogleSignIn method.
return GoogleSignIn.instance.initialize(
serverClientId: webClientId.isEmpty ? null : webClientId,
);
}
bool isConfigError(GoogleSignInException e) {
final text = e.description ?? '';
return e.code == GoogleSignInExceptionCode.clientConfigurationError ||
e.code == GoogleSignInExceptionCode.providerConfigurationError ||
text.contains('28444') ||
text.contains('Developer console is not set up correctly');
}
Future<GoogleSignInAccount?> signInWithGoogle() async {
try {
return await GoogleSignIn.instance.authenticate();
} on GoogleSignInException catch (e) {
if (isConfigError(e)) {
// Not the user's fault: report it so you see it from Play installs.
debugPrint('Google Sign-In config error: ${e.code.name} ${e.description}');
} else if (e.code == GoogleSignInExceptionCode.canceled) {
// User closed the sheet, or a config error the plugin cannot tell apart.
debugPrint('Google Sign-In canceled: ${e.description}');
}
return null;
}
}Build with flutter build appbundle --dart-define=GOOGLE_WEB_CLIENT_ID=1234-abc.apps.googleusercontent.com. Use the Web application client ID, never the Android one.
5. Check the OAuth consent screen
If the consent screen is still in Testing, only listed test users can sign in. Move it to production in Google Cloud's Google Auth Platform before a public release.
6. Verify with the internal testing track
Upload the new AAB to internal testing and install it from the Play Store link, not with adb. Only that install is signed with the app signing key. You can also download the exact APK Play serves: Test and release > Latest releases and bundles, pick the bundle, open the Downloads tab, and take the signed universal APK.
How can I check the fingerprints before I upload?
I use this script in CI and before handing a release to a client. It reads google-services.json, collects SHA-1s from keystores, APKs or values you paste from Play Console, and fails if any of them has no Android OAuth client or if the web client is missing.
#!/usr/bin/env python3
"""Compare signing-certificate SHA-1s against google-services.json.
Usage:
python3 check_sha.py android/app/google-services.json \
--keystore ~/.android/debug.keystore:androiddebugkey:android \
--keystore upload-keystore.jks:upload:$UPLOAD_STORE_PASSWORD \
--apk app-from-play.apk \
--sha1 'AB:CD:...' # pasted from Play Console
Exit code 1 if any fingerprint is missing or there is no web client.
"""
import argparse, json, re, shutil, subprocess, sys
SHA1_RE = re.compile(r"(?:certificate SHA-1 digest|SHA1):\s*([0-9A-Fa-f:]{40,59})")
def norm(fp):
return fp.replace(":", "").strip().lower()
def run(cmd):
p = subprocess.run(cmd, capture_output=True, text=True)
return p.returncode, p.stdout + p.stderr
def from_keystore(spec):
path, alias, password = spec.split(":", 2)
code, out = run(["keytool", "-list", "-v", "-keystore", path,
"-alias", alias, "-storepass", password])
if code != 0:
sys.exit(f"keytool failed for {path}: {out.strip().splitlines()[-1]}")
return {norm(m) for m in SHA1_RE.findall(out)}
def from_apk(path):
# apksigner reads v2/v3/v3.1 signatures; keytool only reads v1 (JAR) ones.
if shutil.which("apksigner"):
code, out = run(["apksigner", "verify", "--print-certs", "-v", path])
else:
print("warning: apksigner not on PATH; keytool sees only the v1 signer,"
" so a rotated (upgraded) key will not be listed")
code, out = run(["keytool", "-printcert", "-jarfile", path])
found = {norm(m) for m in SHA1_RE.findall(out)}
if not found:
sys.exit(f"No certificate found in {path}:\n{out.strip()}")
return found
def main():
ap = argparse.ArgumentParser()
ap.add_argument("google_services")
ap.add_argument("--package", help="applicationId (default: first client)")
ap.add_argument("--keystore", action="append", default=[],
help="path:alias:storepass")
ap.add_argument("--apk", action="append", default=[])
ap.add_argument("--sha1", action="append", default=[],
help="fingerprint copied from Play Console")
a = ap.parse_args()
gs = json.load(open(a.google_services))
clients = gs.get("client", [])
pkgs = [c["client_info"]["android_client_info"]["package_name"] for c in clients]
pkg = a.package or (pkgs[0] if pkgs else None)
client = next((c for c in clients
if c["client_info"]["android_client_info"]["package_name"] == pkg), None)
if client is None:
sys.exit(f"Package {pkg} not in google-services.json (found: {pkgs})")
oauth = client.get("oauth_client", [])
registered = {norm(o["android_info"]["certificate_hash"])
for o in oauth if o.get("client_type") == 1
and o.get("android_info", {}).get("package_name") == pkg}
has_web = any(o.get("client_type") == 3 for o in oauth)
wanted = {}
for k in a.keystore:
for fp in from_keystore(k):
wanted[fp] = f"keystore {k.split(':')[0]}"
for p in a.apk:
for fp in from_apk(p):
wanted[fp] = f"apk {p}"
for s in a.sha1:
wanted[norm(s)] = "Play Console"
print(f"package: {pkg}")
print(f"Android OAuth clients in google-services.json: {len(registered)}")
print(f"web client (client_type 3) present: {'yes' if has_web else 'NO'}")
missing = 0
for fp, where in wanted.items():
ok = fp in registered
missing += not ok
pretty = ":".join(fp[i:i+2] for i in range(0, 40, 2)).upper()
print(f" [{'OK' if ok else 'MISSING'}] {pretty} ({where})")
if missing or not has_web:
if missing:
print(f"FAIL: {missing} fingerprint(s) not registered")
if not has_web:
print("FAIL: no web client (client_type 3), so serverClientId is empty")
print("Add them in Firebase > Project settings > Your apps, then download google-services.json again.")
sys.exit(1)
print("PASS: every signing certificate has an Android OAuth client")
if __name__ == "__main__":
main()Run it against the APK Play serves:
python3 check_sha.py android/app/google-services.json \
--keystore ~/.android/debug.keystore:androiddebugkey:android \
--apk universal.apk \
--sha1 'AA:BB:...' # App signing key SHA-1 from Play ConsoleI tested eight scenarios with throwaway keystores and fake config files. Here is the key one, an APK signed by a stand-in app signing key while only the debug and upload keys are registered:
$ python3 check_sha.py gs-debug-upload.json --apk app-from-play.apk
package: com.example.shop
Android OAuth clients in google-services.json: 2
web client (client_type 3) present: yes
[MISSING] 14:FB:7B:5B:37:04:A7:77:49:DB:B1:34:11:9A:11:72:E2:F0:B9:AA (apk app-from-play.apk)
FAIL: 1 fingerprint(s) not registered
Add them in Firebase > Project settings > Your apps, then download google-services.json again.Do I need to add new fingerprints after a Play App Signing key upgrade?
Yes. Play Console Help now lets you request an annual app signing key upgrade for installs on Android 17 (API level 37) or higher. After an upgrade, Android 17+ enforces the new quantum-ready hybrid key (APK Signature Scheme v3.2), Android 13 to 16 enforces your latest classical key (v3.1), and on Android 7 to 12 the platform does not enforce the upgraded key, though Google Play Protect checks updates against your latest classical key. The help page says to "register your new key fingerprints with your API providers": two new keys (a classical one and a post-quantum ML-DSA one) if you use quantum-ready hybrid signing. In total that can mean three app signing fingerprints, plus debug and upload.
So if sign-in breaks for users on newer phones right after someone clicked Upgrade key, go back to the Play app signing page and register every fingerprint listed there. The same applies to assetlinks.json for App Links, and to the SHA-256 you registered for Firebase App Check with Play Integrity.
What if it still fails after adding every key?
- The package name in Firebase must match
applicationIdexactly, including flavor suffixes such as.dev. - The web client and the Android OAuth clients should live in the same Google Cloud project. A web client ID copied from an old project fails even with correct fingerprints.
- Give the change some time; Google says OAuth settings can take a few hours to apply.
- One 2026 report (flutterfire issue 18388) kept getting code 10 with matching fingerprints, and the maintainers closed it as a configuration issue outside the plugin. If you reach that point, compare the Play-served APK's certificate with
apksigner, as that reporter did, and check the Android OAuth clients in the Google Cloud console directly.
Release checklist for Google Sign-In on Android
- Debug, upload and app signing key SHA-1 and SHA-256 are in Firebase for the right package name
- After any key upgrade, the new keys listed on the Play app signing page are added too
- A fresh
google-services.jsonis inandroid/app/with oneclient_type: 1entry per SHA-1 and aclient_type: 3web client serverClientIdis the Web application client ID (on 7.x), andgoogle_sign_in_androidis 7.2.20 or later- The OAuth consent screen is in production
check_sha.pypasses in CI against the Play-served APK or the Play Console fingerprints- Sign-in is tested from an internal testing install, not an
adbinstall
Frequently asked questions
What does ApiException: 10 mean in Google Sign-In?
Status code 10 is DEVELOPER_ERROR, which Google defines as the application being misconfigured. In practice the package name and signing certificate SHA-1 of the installed app do not match any Android OAuth client in your Firebase or Google Cloud project.
Why does Google Sign-In work in debug but not in the Play Store build?
Debug builds are signed with your local debug key, but apps installed from Google Play are signed with Google's app signing key. If only the debug or upload key SHA-1 is registered, the Play build fails with ApiException: 10.
Where do I find the SHA-1 in Google Play Console?
Open your app and go to Protected with Play, then Play Store protection, then Manage Play app signing. Copy the SHA-1 and SHA-256 from the App signing key section.
How do I fix PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null, null)?
Add the SHA-1 of the debug, upload and Play app signing keys to your Android app in Firebase project settings, download a fresh google-services.json and rebuild. Then test with an install from the internal testing track.
What is [28444] Developer console is not set up correctly?
It is the Credential Manager message that google_sign_in 7.x passes through as a GoogleSignInException, usually with code unknownError. Common causes are a missing or wrong signing SHA-1, a wrong package name or a wrong serverClientId.
Which client ID should I use as serverClientId in google_sign_in 7?
Use the Web application OAuth client ID, the entry with client_type 3 in google-services.json. Do not use the Android client ID.
Do I need to update Firebase after a Play App Signing key upgrade?
Yes. Play Console Help says to register the new key fingerprints with your API providers after an upgrade, which can mean a new classical key and a new post-quantum key in addition to the old one.
Do I need to add the upload key SHA-1 to Firebase?
Add it if anyone installs builds signed with the upload key, for example a locally built release APK. Users who install from Google Play only need the app signing key, but registering both avoids confusing test results.
Sources
- Use Play App Signing (register with API providers, upgrade your app signing key) (Google Play Console Help)
- Authenticating your client (keytool, signingReport) (Google for Developers, 2026-11-09)
- CommonStatusCodes.DEVELOPER_ERROR (Google for Developers)
- Add a SHA fingerprint (Firebase Help)
- Authenticate with Google on Android (SHA-1, setServerClientId) (Firebase, 2026-12-01)
- Federated identity and social sign-in (Flutter) (Firebase, 2026-12-01)
- The Google Services Gradle plugin (default_web_client_id, client_type 3) (Google for Developers, 2026-12-01)
- Implement Sign in with Google (Credential Manager) (Android Developers, 2026-12-01)
- Manage OAuth clients (Google Cloud Help)
- google_sign_in package (7.2.0) (pub.dev, 2025-09-17)
- google_sign_in_android changelog (7.2.20) (pub.dev, 2026-11-30)
- google_sign_in_android README: troubleshooting (flutter/packages on GitHub)
- GoogleSignInExceptionCode (platform interface types) (flutter/packages on GitHub)
- [28444] Developer console is not set up correctly (issue 178250) (GitHub, 2025-11-10)
- Release builds can strip default_web_client_id (issue 188363) (GitHub, 2026-06-23)
- res/raw/keep.xml should be uniquely named (issue 194943) (GitHub, 2026-10-21)
- Google Sign-In fails with DEVELOPER_ERROR (code 10) only on Play App Signing builds (flutterfire 18388) (GitHub, 2026-06-20)
- apksigner (Android Developers)
Keep reading
- Android App Bundle Signed With the Wrong Key: Flutter FixFix the Play Console error that your Android App Bundle is signed with the wrong key: compare SHA-1 fingerprints, sign Flutter builds right, or reset the key.
- Flutter Keystore Was Tampered With, or Password Was IncorrectFix 'Keystore was tampered with, or password was incorrect' in Flutter release builds: test the password with keytool, repair CI secrets, fix key.properties.
- Firebase App Check in Flutter: Play Integrity and App AttestSet up Firebase App Check in Flutter with the firebase_app_check 0.5 API, Play Integrity and App Attest, then verify tokens on your own Node backend.
Comments
Share a question or note about this article.
Loading comments…