java.lang.RuntimeException

tip

This is caused by using legacy commands from older versions of Firebase. Look for the new documentation and try using only the new SDK

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Default FirebaseApp is not initialized
    via Stack Overflow by Roy Solberg
    ,
  • New Firebase Initialize Crashes
    via Stack Overflow by Ashok Varma
    ,
  • Robolectric app testing with Firebase
    via Stack Overflow by Prokky
    ,
  • My Firebase Authentication Dependency Issue
    via Stack Overflow by Bright
    ,
    • java.lang.RuntimeException: Unable to start activity ComponentInfo{xxx.xxx.xxx/xxx.xxx.xxx.MainActivity}: java.lang.IllegalStateException: FirebaseApp with name [DEFAULT] doesn't exist. at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2521) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2595) at android.app.ActivityThread.access$800(ActivityThread.java:178) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1470) at android.os.Handler.dispatchMessage(Handler.java:111) at android.os.Looper.loop(Looper.java:194) at android.app.ActivityThread.main(ActivityThread.java:5631) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:959) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:754) Caused by: java.lang.IllegalStateException: FirebaseApp with name [DEFAULT] doesn't exist. at com.google.firebase.FirebaseApp.getInstance(Unknown Source) at com.google.firebase.FirebaseApp.getInstance(Unknown Source) at com.google.firebase.iid.FirebaseInstanceId.getInstance(Unknown Source) at com.google.firebase.messaging.FirebaseMessaging.getInstance(Unknown Source) at com.gae.scaffolder.plugin.FCMPlugin.initialize(FCMPlugin.java:34) at org.apache.cordova.CordovaPlugin.privateInitialize(CordovaPlugin.java:57) at org.apache.cordova.PluginManager.getPlugin(PluginManager.java:172) at org.apache.cordova.PluginManager.startupPlugins(PluginManager.java:98) at org.apache.cordova.PluginManager.init(PluginManager.java:87) at org.apache.cordova.CordovaWebViewImpl.init(CordovaWebViewImpl.java:116) at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:144) at org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:214) at xxx.xxx.xxx.MainActivity.onCreate(MainActivity.java:32) at android.app.Activity.performCreate(Activity.java:6092) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1112) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2468) ... 10 more

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,