Default FirebaseApp is not initialized 🤖 Android

IllegalStateException: Default FirebaseApp is not initialized in this process

Firebase couldn’t initialise because google-services.json or the Google Services Gradle plugin is missing/misapplied, or initialisation happens in another process.

Seen on: Android

Meaning

The google-services plugin turns google-services.json into resources Firebase reads at startup. Missing plugin, JSON in the wrong folder, package name mismatch, or using Firebase in a separate process causes this.

Common causes

  • com.google.gms.google-services plugin not applied
  • google-services.json missing or in the wrong module folder
  • Package name not in the JSON
  • Using Firebase in a secondary process without initializeApp

⚡ Quick fix

  1. Apply the plugin in the app module
  2. Put google-services.json in app/
  3. Call FirebaseApp.initializeApp(context) in multi-process setups

Detailed fix by platform

Gradle

  1. kotlin
    plugins {
      id("com.android.application")
      id("com.google.gms.google-services")
    }

How to diagnose

  1. Plugin — Applied?
  2. File — app/google-services.json, package names inside
  3. Process — Which process crashed?

🔧 Still not fixed?

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

🧠 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.