java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process com.example.app. Make sure to call FirebaseApp.initializeApp(Context) first.

Stack Overflow | Roy Solberg | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 1

    Default FirebaseApp is not initialized

    Stack Overflow | 6 months ago | Roy Solberg
    java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process com.example.app. Make sure to call FirebaseApp.initializeApp(Context) first.
  2. 0

    New Firebase Initialize Crashes

    Stack Overflow | 11 months ago | Ashok Varma
    java.lang.IllegalStateException: FirebaseApp with name [DEFAULT] doesn't exist.
  3. 0

    Firebase + RoboElectric: java.lang.IllegalStateException: FirebaseApp with name [DEFAULT] doesn't exist

    Stack Overflow | 9 months ago | Abdullah
    java.lang.IllegalStateException: FirebaseApp with name [DEFAULT] doesn't exist.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Could not find a method saveData(View)

    Google Groups | 7 months ago | Giuseppe Guarino
    java.lang.IllegalStateException: Could not find a method saveData(View) in the activity class com.example.giuse.secondly.NewSheet for onClick handler on view class android.widget.Button with id 'button_save' at android.view.View$1.onClick(View.java:4007) at android.view.View.performClick(View.java:4780) at android.view.View$PerformClick.run(View.java:19866) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) 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:903)

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Default FirebaseApp is not initialized in this process com.example.app. Make sure to call FirebaseApp.initializeApp(Context) first.

      at com.google.firebase.FirebaseApp.getInstance()
    2. com.google.firebase
      FirebaseRemoteConfig.getInstance
      1. com.google.firebase.FirebaseApp.getInstance(Unknown Source)
      2. com.google.firebase.remoteconfig.FirebaseRemoteConfig.getInstance(Unknown Source)
      2 frames
    3. com.example.app
      SomeFragment.onCreateView
      1. com.example.app.fragments.SomeFragment.updateFooter(SourceFile:295)
      2. com.example.app.fragments.SomeFragment.onCreateView(SourceFile:205)
      2 frames
    4. Android Support v4
      ViewPager.setAdapter
      1. android.support.v4.app.Fragment.performCreateView(SourceFile:2080)
      2. android.support.v4.app.FragmentManagerImpl.moveToState(SourceFile:1108)
      3. android.support.v4.app.FragmentManagerImpl.moveToState(SourceFile:1290)
      4. android.support.v4.app.BackStackRecord.run(SourceFile:801)
      5. android.support.v4.app.FragmentManagerImpl.execSingleAction(SourceFile:1638)
      6. android.support.v4.app.BackStackRecord.commitNowAllowingStateLoss(SourceFile:679)
      7. android.support.v4.app.FragmentPagerAdapter.finishUpdate(SourceFile:143)
      8. android.support.v4.view.ViewPager.populate(SourceFile:1240)
      9. android.support.v4.view.ViewPager.populate(SourceFile:1088)
      10. android.support.v4.view.ViewPager.setAdapter(SourceFile:542)
      10 frames
    5. com.example.app
      AsyncHttp.onPostExecute
      1. com.example.app.SomeActivity.onSomeAsyncCallback(SourceFile:908)
      2. com.example.app.SomeDataRetriever.onAsyncHttpCompleted(SourceFile:72)
      3. com.example.app.io.AsyncHttp.onPostExecute(SourceFile:141)
      4. com.example.app.io.AsyncHttp.onPostExecute(SourceFile:19)
      4 frames
    6. Android Platform
      ActivityThread.main
      1. android.os.AsyncTask.finish(AsyncTask.java:679)
      2. android.os.AsyncTask.access$500(AsyncTask.java:180)
      3. android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:696)
      4. android.os.Handler.dispatchMessage(Handler.java:102)
      5. android.os.Looper.loop(Looper.java:150)
      6. android.app.ActivityThread.main(ActivityThread.java:5665)
      6 frames
    7. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Method.java)
      1 frame
    8. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:799)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:689)
      2 frames