java.lang.RuntimeException: Unable to start activity ComponentInfo{com.math.mathquiz/com.math.mathquiz.HighScoreActivity}: java.lang.IllegalStateException: PreferencesManager is not initialized, call initializeInstance(..) method first.

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

,

Create an empty public constructor in your code.

Solutions on the web

via Stack Overflow by AnProgRammer
, 1 year ago
Unable to start activity ComponentInfo{com.math.mathquiz/com.math.mathquiz.HighScoreActivity}: java.lang.IllegalStateException: PreferencesManager is not initialized, call initializeInstance(..) method first.
via Stack Overflow by Subham Kaps
, 1 year ago
Unable to start activity ComponentInfo{com.skapsdevelopment.firebase/com.skapsdevelopment.firebase.MainActivity}: java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process com.skapsdevelopment.firebase. Make sure to call FirebaseApp.initializeApp(Context) first.
via Stack Overflow by Romar Jhon Maulana
, 2 weeks ago
Unable to start activity ComponentInfo{com.bustracker.sample.myapplication/com.bustracker.sample.myapplication.MainActivity}: java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process com.bustracker.sample.myapplication. Make sure to call FirebaseApp.initializeApp(Context) first.
via Stack Overflow by Ralf Wickum
, 3 months ago
Unable to start activity ComponentInfo{com.example.demo/com.example.MainActivity}: java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process com.example.demo. Make sure to call FirebaseApp.initializeApp(Context) first.
via Stack Overflow by Venky
, 10 months ago
Unable to instantiate activity ComponentInfo{com.example.halo.firebase/com.example.halo.firebase.MainActivity}: java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process com.example.halo.firebase. Make sure to call FirebaseApp.initializeApp(Context) first.
via GitHub by goto1134
, 4 months ago
Unable to start activity ComponentInfo{tinkoff.androidcourse/tinkoff.androidcourse.NavigationActivity}: java.lang.IllegalStateException: The global database holder is not initialized. Ensure you call FlowManager.init() before accessing the databas
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.math.mathquiz/com.math.mathquiz.HighScoreActivity}: java.lang.IllegalStateException: PreferencesManager is not initialized, call initializeInstance(..) method first.
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2426)

Users with the same issue

66 times, 3 weeks ago
Once, 2 months ago
33 times, 3 months ago
8 times, 3 months ago
468 times, 4 months ago

Write tip

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