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)

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 Stack Overflow by user6848251
, 1 year ago
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
via Stack Overflow by Juanca diy johndiy
, 2 years ago
Unable to start activity ComponentInfo{com.blitzar.stiktag/com.blitzar.stiktag.Activities.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.ActionBar.setIcon(int)' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2394)
via Stack Overflow by Vynllazuril
, 2 years ago
Unable to start activity ComponentInfo{net.metaruptdonations.MetaDex/net.metaruptdonations.MetaDex.BulbaTab}: java.lang.RuntimeException: Unable to start activity ComponentInfo{net.metaruptdonations.MetaDex/net.metaruptdonations.MetaDex.Bulbasaur}: java.lang.NullPointerException at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2305)
via Stack Overflow by Leo
, 1 year ago
Unable to start activity ComponentInfo{com.eleo.kyivsights/com.eleo.kyivsights.acti`vities.MainActivity}: android.view.InflateException: Binary XML file line #226: Error inflating class at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2413)
via Stack Overflow by user1397978
, 2 years ago
Unable to start activity ComponentInfo{com.example.testapp/com.example.testapp.DayListActivity}: java.lang.IllegalArgumentException: No view found for id 0x7f0b0012 (com.example.testapp:id/item_detail_container_session) for fragment SessionFragment{42587528 #1 id=0x7f0b0012} at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2331)
via Stack Overflow by Marcatus
, 2 years ago
Unable to start activity ComponentInfo{com.example.tryapp/com.example.tryapp.MainActivity}: android.util.AndroidRuntimeException: You cannot combine swipe dismissal and the action bar. at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2197)
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 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.(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)

Users with the same issue

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

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