# Flutter: PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null, null)

**Code:** `PlatformException(sign_in_failed, ApiException: 10)` · **Category:** Flutter / Dart · **Seen on:** Flutter, Android

Google Sign-In failed on Android because the app's SHA-1 fingerprint or package name is not registered for the OAuth client.

## Meaning

ApiException 10 is a developer error: the debug or release SHA-1 is missing in Firebase/Google Cloud, `google-services.json` is stale, or the package name differs. Add both debug and release (and Play App Signing) SHA-1/SHA-256 fingerprints, then download a new `google-services.json`.

## Common causes

- SHA-1 for the signing keystore not added in Firebase
- Release/Play signing key fingerprint missing
- Outdated google-services.json
- Package name mismatch
- OAuth consent screen or client not configured

## Quick fix

1. Run `cd android && ./gradlew signingReport` and copy SHA-1 into Firebase project settings
2. Download the new google-services.json
3. Add the Play Console app-signing SHA-1 for release builds

## Detailed fix by platform

### Android

1. `cd android && ./gradlew signingReport` prints SHA-1 for every variant

## How to diagnose

1. **Code** — ApiException 10 or 12500?
2. **SHA** — Debug and release added?
3. **File** — google-services.json updated?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/flutter/platformexception-sign-in-failed)
