Skip to main content

Fixing sign_in_failed, com.google.android.gms.common.api.ApiException: 10

Avatar of Daniel Reynolds
Daniel Reynolds
Software Engineer

Sign-in failed: PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null, null)

This is a super common issue to run into while setting up the Flutter Google Sign In (google_sign_in) Plugin. Luckily, the solution is simple, read below.

Google's official docs on this give the somewhat obscure 'The application is misconfigured' reason for this, which isn't particularly helpful.

The actual issue is that you have not set up your SHA fingerprint within Firebase. Here's how to do that.

Steps to Fix

1. Get debug keystore's SHA1 & SHA256 Fingerprints

Run the following within your terminal: keytool -list -v -alias androiddebugkey -keystore ~/.android/debug.keystore

When prompted for your password enter android

You will be given an output like so

Alias name: androiddebugkey
Creation date: Apr 16, 2025
Entry type: PrivateKeyEntry
Certificate chain length: 1
Certificate[1]:
Owner: C=US, O=Android, CN=Android Debug
Issuer: C=US, O=Android, CN=Android Debug
Serial number: 1
Valid from: Wed Apr 16 22:08:30 MDT 2025 until: Fri Apr 09 22:08:30 MDT 2055
Certificate fingerprints:
SHA1: XX:XX:XX:XX:XX:XX:XX:XX:XX
SHA256: XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX
Signature algorithm name: SHA256withRSA
Subject Public Key Algorithm: 2048-bit RSA key
Version: 1

The important parts here are the fingerprints, next to SHA1: and SHA256:

2. Add the SHA1 & SHA256 Keys to Firebase

On "Project Overview" Click on "Project Settings"

Within "Project Settings" Stay on the "General" tab

Scroll Down to "Your Apps", And Select the Android Entry

Here, you can finally add your fingerprints by clicking on the Add Fingerprint button.

Add The Respective Fingerprints

To be thorough, you can copy both the SHA1 and SHA256 entries here from your terminal output.

3. Rebuild Your App, and retry sign-in

The bug should be solved at this point, enjoy building your app 🚀