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.

  • Robolectric app testing with Firebase
    via Stack Overflow by Prokky
    ,
  • My Firebase Authentication Dependency Issue
    via Stack Overflow by Bright
    ,
  • Default FirebaseApp is not initialized
    via Stack Overflow by Roy Solberg
    ,
  • New Firebase Initialize Crashes
    via Stack Overflow by Ashok Varma
    ,
    • java.lang.RuntimeException: Unable to create application com.android.tools.fd.runtime.BootstrapApplication: java.lang.IllegalStateException: FirebaseApp with name [DEFAULT] doesn't exist. at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4612) at android.app.ActivityThread.access$1600(ActivityThread.java:169) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1337) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5476) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084) at dalvik.system.NativeStart.main(Native Method) 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.auth.FirebaseAuth.getInstance(Unknown Source) at com.redstar.collectors.MainApplication.onCreate(MainApplication.java:22) at com.android.tools.fd.runtime.BootstrapApplication.onCreate(BootstrapApplication.java:369) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1013) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4609)

    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,