java.lang.NullPointerException: No default RealmConfiguration was found. Call setDefaultConfiguration() 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

Solutions on the web

via GitHub by donnguyen
, 1 year ago
No default RealmConfiguration was found. Call setDefaultConfiguration() first
via GitHub by McManusds
, 1 year ago
No default RealmConfiguration was found. Call setDefaultConfiguration() first
via Stack Overflow by ruitercomp
, 1 year ago
No default RealmConfiguration was found. Call setDefaultConfiguration() first
java.lang.NullPointerException: No default RealmConfiguration was found. Call setDefaultConfiguration() first
at io.realm.Realm.getDefaultInstance(Realm.java:158)
at removed.MainActivity.onCreate(MainActivity.java:73)
at android.app.Activity.performCreate(Activity.java:6876)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3207)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3350)
at android.app.ActivityThread.access$1100(ActivityThread.java:222)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1795)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7229)

Users with the same issue

4 times, 9 months ago
2 times, 1 year ago
14 times, 1 year ago

Write tip

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