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 start activity ComponentInfo{it.unisalento.progetto.software.cunamameli.dafb/it.unisalento.progetto.software.cunamameli.dafb.loginPack.LoginActivity}: java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process it.unisalento.progetto.software.cunamameli.dafb. Make sure to call FirebaseApp.initializeApp(Context) first. at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2456) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2539) at android.app.ActivityThread.access$900(ActivityThread.java:159) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1384) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:152) at android.app.ActivityThread.main(ActivityThread.java:5507) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) Caused by: java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process it.unisalento.progetto.software.cunamameli.dafb. Make sure to call FirebaseApp.initializeApp(Context) first. at com.google.firebase.FirebaseApp.getInstance(Unknown Source) at com.google.firebase.auth.FirebaseAuth.getInstance(Unknown Source) at it.unisalento.progetto.software.cunamameli.dafb.loginPack.LoginNetwork.<init>(LoginNetwork.java:19) at it.unisalento.progetto.software.cunamameli.dafb.loginPack.LoginActivity.onCreate(LoginActivity.java:35) at android.app.Activity.performCreate(Activity.java:6304) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2409)

    Users with the same issue

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