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 create service com.tradesomev4.tradesomev4.m_Helpers.LocationService: java.lang.IllegalStateException: FirebaseApp with name [DEFAULT] doesn't exist. at android.app.ActivityThread.handleCreateService(ActivityThread.java:3005) at android.app.ActivityThread.access$1800(ActivityThread.java:178) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1553) at android.os.Handler.dispatchMessage(Handler.java:111) at android.os.Looper.loop(Looper.java:194) at android.app.ActivityThread.main(ActivityThread.java:5637) 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.database.FirebaseDatabase.getInstance(Unknown Source) at com.tradesomev4.tradesomev4.m_Helpers.LocationService.onCreate(LocationService.java:128) at android.app.ActivityThread.handleCreateService(ActivityThread.java:2995)

    Users with the same issue

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