11. FAQ

What should I do if I get the error “Missing project_info object”?

This Android build error means the google-services.json file is missing, in the wrong place, or does not match the package name.

Solution

  1. Check the file location. google-services.json must sit in android/app/ — not in android/ and not in the project root.
  2. Check the package name. The package_name inside the JSON must match the applicationId in android/app/build.gradle. If you renamed the package, register the new one in Firebase and download the file again.
  3. Verify the Firebase setup. Confirm the Android app is registered in the Firebase console under Project Settings → Your apps.
  4. Update the Google Services plugin. Make sure the com.google.gms:google-services classpath in android/build.gradle is a current version.
  5. Re-sync and rebuild. Sync Gradle in Android Studio, then run:
flutter clean
flutter pub get
flutter run