Flutter on Android: Missing google_app_id and Firebase Analytics disabled
Missing google_app_id. Firebase Analytics disabled.Short answer
The Firebase Android SDK reads your app ID from values the Google services Gradle plugin generates from google-services.json. If the file is in the wrong folder, has the wrong name, or the plugin is not applied, no app ID exists and Analytics turns itself off. Fix the file location and the plugin, then rebuild.
Fix it fast
1Find out which cause you have
Check that the config file exists in the Android app module with its exact original name.
ls -l android/app/google-services.json2Match what you see, then jump to its fix
- 1
ls reports No such file, or the file is named google-services (1).jsongoogle-services.json is missing, renamed, or in the wrong folderFix - 2
The file is in the right place but the message still appearsThe Google services Gradle plugin is not appliedFix - 3
The applicationId in Gradle differs from package_name in the config fileThe package name in the file differs from the appFix
- 1
What does the error look like?
Missing google_app_id. Firebase Analytics disabled.
Cause 1 of 3
google-services.json is missing, renamed, or in the wrong folder
1Check
The file must sit in the app module root, and its name must not be changed or have characters appended.
find . -name "google-services*.json" -not -path "./build/*"2Fix
Download a fresh copy from the Firebase console for the same package name, and put it at android/app/google-services.json. Or run flutterfire configure again to refresh the Firebase setup.
mv "$HOME/Downloads/google-services.json" android/app/google-services.json3Verify
Rebuild and read the startup logs; the message should be gone.
flutter runConfirmed by firebase.google.com
Cause 2 of 3
The Google services Gradle plugin is not applied
1Check
Look for the plugin id in both Gradle files of your android folder.
grep -rn "com.google.gms.google-services" android/ --include=*.gradle --include=*.kts2Fix
Declare the plugin with apply false in the root-level file, with the version, then apply it without a version in the app-level file.
// android/build.gradle.kts (root level)
id("com.google.gms.google-services") version "4.6.0" apply false
// android/app/build.gradle.kts
plugins {
id("com.android.application")
id("com.google.gms.google-services")
}3Verify
Run a clean rebuild so the plugin regenerates the resources.
flutter clean
flutter runConfirmed by firebase.google.com
Cause 3 of 3
The package name in the file differs from the app
1Check
The package name is case-sensitive and must match the one in the module Gradle file.
grep -n "applicationId" android/app/build.gradle*
grep -n "package_name" android/app/google-services.json2Fix
Register the real applicationId as an Android app in the Firebase project and download its config file again. The package name cannot be changed after registration.
flutterfire configure3Verify
Both greps show the same value, and the app builds.
flutter build apk --debugConfirmed by firebase.google.com
How do I stop it coming back?
- Treat the config file as part of the project and keep it with the app module.
- Re-run flutterfire configure when you add a platform or a Firebase service.
- Do not rename the downloaded file when you move it.
Sources
How was this page made?
I drafted this page with AI assistance from the official documents listed under Sources. Every cause above names the document that confirms it. I have not reproduced this fix on a machine of my own yet, so read it as documented guidance, not a test report. Found a mistake? Tell me.
Which stack is behind this page?
Projects of mine built on the same technologies:
- SessionBirdAn omnichannel engagement suite in Flutter: campaigns, chatbot, tickets, analytics and live calling.
- WorkforceA field app, an admin console and a self-hosted Node.js server for push and reconciliation.
- Spotless LaundryAn on-demand laundry app: Flutter on a Laravel back end, with Firebase for live updates.
Related fixes
Mobile apps
Xcode cannot find GoogleService-Info.plist for the Runner target
error: Build input file cannot be found: '/Users/GoogleService-Info.plist' (in target 'Runner' from project 'Runner')
Xcode's project file lists GoogleService-Info.plist as an input, but nothing exists at the path it records.
3 causes, each with a fixMobile apps
Gradle cannot find com.google.firebase:firebase-analytics-ktx
Required by: project :app
Firebase moved the Kotlin extensions into the main modules and stopped releasing the -ktx modules in July 2025.
2 causes, each with a fixMobile apps
Flutter Android: Failed to load FirebaseOptions from resource
Failed to load FirebaseOptions from resource. Check that you have defined values.xml correctly.
On Android, Firebase reads its settings from a values.xml file that the Google services Gradle plugin builds from google-services.json.
4 causes, each with a fixMobile apps
Flutter phone sign-in fails with status 17028 and play_integrity_token
SMS verification code request failed: unknown status code: 17028 Invalid request fields in play_integrity_token
Firebase checks the app with Play Integrity before sending an SMS, and that check needs your SHA-256 fingerprint.
3 causes, each with a fixMobile apps
Google Sign-In in Flutter fails with PlatformException sign_in_failed, code 10
GoogleSignInExceptionCode.clientConfigurationError
Code 10 means Google could not match your app to an OAuth client.
3 causes, each with a fixMobile apps
Google Play says the app does not support 16 KB memory pages
check_elf_alignment.sh reports UNALIGNED for a library under lib/arm64-v8a
Google Play requires apps that target Android 15 or higher and ship native .so libraries to run on devices with 16 KB memory pages; from 1 February 2027 it will block updates that do not.
5 causes, each with a fix