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.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert 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

Solutions on the web

via GitHub by dhruv270
, 1 year ago
Unable to start activity ComponentInfo{xxx.xxx.xxx/xxx.xxx.xxx.MainActivity}: java.lang.IllegalStateException: FirebaseApp with name [DEFAULT] doesn't exist.
via Stack Overflow by Raj kumar
, 1 month ago
Unable to start activity ComponentInfo{place.picker.mymarket/place.picker.mymarket.MainActivity}: java.lang.IllegalStateException: FirebaseApp was not initialized with a bucket name.
via Stack Overflow by Jack Liu
, 1 year ago
Unable to start activity ComponentInfo{com.example.jack.pbdtrial/com.example.jack.pbdtrial.MainActivity}: java.lang.IllegalArgumentException: provider doesn't exist: network
via GitHub by maurizi
, 1 year ago
Unable to start activity ComponentInfo{org.azavea.otm2.prod/org.azavea.otm.ui.TabLayout}: java.lang.IllegalArgumentException: provider doesn't exist: network
via Stack Overflow by Theophilus Ogundipe
, 2 years ago
Unable to start activity ComponentInfo{glmdnigltd.globaldigitalmagazine/glmdnigltd.globaldigitalmagazine.Login}: java.lang.IllegalStateException: Already attached
via GitHub by rodrigohenriques
, 2 years ago
Unable to start activity ComponentInfo{br.com.brosource.hstgbrasil/com.desmond.squarecamera.CameraActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
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 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)
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)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 9 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.