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 user1785730
, 1 year ago
Fragment null must be a public static class to be properly recreated from instance state.
via Stack Overflow by iBobb
, 2 years ago
Can't change container ID of fragment NightFragment{f2730ec #0 id=0x7f0d00ae}: was 2131558574 now 2131558539
via GitHub by alexspyr
, 1 year ago
Fragment example.com.example.SignupTutorial.ScreenSlideFragment must be a public static class to be properly recreated from instance state.
via GitHub by mwshubham
, 1 year ago
Fragment null must be a public static class to be properly recreated from instance state.
via GitHub by landsnail
, 6 months ago
Fragment com.ihsanbal.introview.FragmentPage 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:420)	at android.support.v4.app.FragmentStatePagerAdapter.instantiateItem(FragmentStatePagerAdapter.java:123)	at android.support.v4.view.ViewPager.addNewItem(ViewPager.java:1006)	at android.support.v4.view.ViewPager.populate(ViewPager.java:1154)	at android.support.v4.view.ViewPager.populate(ViewPager.java:1088)	at android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1614)	at android.view.View.measure(View.java:15525)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4825)	at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1404)	at android.widget.LinearLayout.measureVertical(LinearLayout.java:695)	at android.widget.LinearLayout.onMeasure(LinearLayout.java:588)	at android.view.View.measure(View.java:15525)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4825)	at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)	at android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:135)	at android.view.View.measure(View.java:15525)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4825)	at android.support.v7.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:389)	at android.view.View.measure(View.java:15525)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4825)	at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)	at android.view.View.measure(View.java:15525)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4825)	at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1404)	at android.widget.LinearLayout.measureVertical(LinearLayout.java:695)	at android.widget.LinearLayout.onMeasure(LinearLayout.java:588)	at android.view.View.measure(View.java:15525)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4825)	at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)	at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2438)	at android.view.View.measure(View.java:15525)	at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:1874)	at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1089)	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1265)	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:989)	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4351)	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:749)	at android.view.Choreographer.doCallbacks(Choreographer.java:562)	at android.view.Choreographer.doFrame(Choreographer.java:532)	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735)	at android.os.Handler.handleCallback(Handler.java:725)	at android.os.Handler.dispatchMessage(Handler.java:92)	at android.os.Looper.loop(Looper.java:137)	at android.app.ActivityThread.main(ActivityThread.java:5227)	at java.lang.reflect.Method.invokeNative(Native Method)	at java.lang.reflect.Method.invoke(Method.java:511)	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)	at dalvik.system.NativeStart.main(Native Method)