No Firebase App '[DEFAULT]' has been created Flutter / Dart Origin: On your device OSI layer 7 · Application Last updated 4 Nov 2026

Flutter: [core/no-app] No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp()

A Firebase service was used before Firebase.initializeApp() ran and completed.

Exact message you may see [core/no-app] No Firebase App '[DEFAULT]' has been createdNo Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp()FirebaseException core/no-appFirebase.initializeApp() not called
Seen on: Flutter Google Cloud

Meaning

Initialise Firebase in main() before runApp, after WidgetsFlutterBinding.ensureInitialized(), and await it. Add DefaultFirebaseOptions.currentPlatform from FlutterFire CLI. In isolates or background handlers initialise again.

Common causes

  • initializeApp not called or not awaited
  • Missing WidgetsFlutterBinding.ensureInitialized()
  • Background message handler isolate not initialised
  • Missing google-services.json / GoogleService-Info.plist
  • Platform options not generated by FlutterFire CLI

⚡ Quick fix

  1. Call await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform); in main
  2. Run flutterfire configure
  3. Initialise in background isolate handlers too

Detailed fix by platform

Flutter

  1. void main() async { WidgetsFlutterBinding.ensureInitialized(); await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform); runApp(const MyApp()); }

How to diagnose

  1. Init — Awaited before use?
  2. Config — Platform files present?
  3. Isolate — Background handler?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: On your device. Errors that are often confused with or caused by this one (click to open):

Android license status unknown / licenses not accepted — flutter doctor: Android license status unknown. Run `flutter doctor --android-licenses` to accept the SDK licenses (Flutter / Dart)Android license statu…ApiException: 10 — Google Sign-In: com.google.android.gms.common.api.ApiException: 10 (DEVELOPER_ERROR) (Android)ApiException: 10BoxConstraints forces an infinite width — Flutter: BoxConstraints forces an infinite width. These invalid constraints were provided to RenderStack's layout() function (TextField in a Row) (Flutter / Dart)BoxConstraints forces…Cleartext HTTP traffic not permitted — Flutter (Android): java.io.IOException: Cleartext HTTP traffic to api.example.com not permitted (Flutter / Dart)Cleartext HTTP traffi…Default FirebaseApp is not initialized — IllegalStateException: Default FirebaseApp is not initialized in this process (Android)Default FirebaseApp i…Dependency requires compileSdk 34 or later — Android Gradle: Execution failed for task ':app:checkDebugAarMetadata'. Dependency requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs (Flutter / Dart)Dependency requires c…Firebase CLI: Authentication Error: Your credentials are no longer valid — Firebase CLI: Error: Authentication Error: Your credentials are no longer valid. Please run firebase login --reauth (Google Cloud / Firebase)Firebase CLI: Authent…Firebase: Your project must be on the Blaze (pay-as-you-go) plan — Firebase CLI: Error: Your project my-app must be on the Blaze (pay-as-you-go) plan to complete this command. Required API cloudbuild.googleapis.com can't be enabled until the upgrade is complete (Google Cloud / Firebase)Firebase: Your projec…No Fireba…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.