java.lang.IllegalStateException: Fragment null must be a public static class to be properly recreated from instance state.

Hot problem!
This exception has a lot of traffic. You can help 110 users by writing a short tip.

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 Stack Overflow by Falling Into Infinity
, 1 year ago
Fragment null must be a public static class to be properly recreated from instance state.
via GitHub by clone278
, 3 months ago
Fragment null must be a public static class to be properly recreated from instance state.
via GitHub by rickmrobin
, 11 months ago
Fragment null must be a public static class to be properly recreated from instance state.
via Stack Overflow by narb
, 2 years ago
Can't change tag of fragment TextReadFragment1{42457598 id=0x7f090030 text}: was text now android:switcher:2131296304:0
via GitHub by timrae
, 7 months ago
Fragment null must be a public static class to be properly recreated from instance state.
via GitHub by kathanshah
, 1 year ago
Fragment null must be a public static class to be properly recreated from instance state.
java.lang.IllegalStateException: Fragment null must be a public static class to be properly recreated from instance state.
at android.support.v4.app.BackStackRecord.doAddOp(BackStackRecord.java:435)
at android.support.v4.app.BackStackRecord.add(BackStackRecord.java:414)
at android.support.v4.app.DialogFragment.show(DialogFragment.java:154)
at com.androidapp.base.BaseActivity.showDialogFragment(BaseActivity.java:78)
at com.androidapp.MainActivity.showNewDialog(MainActivity.java:304)
at com.androidapp.MainActivity$6.onClick(MainActivity.java:228)

Users with the same issue

4 times, 9 months ago
2 times, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

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