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

Stack Overflow | user1785730 | 2 months ago
  1. 0

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

    Stack Overflow | 2 months ago | user1785730
    java.lang.IllegalStateException: Fragment null must be a public static class to be properly recreated from instance state.
  2. 0

    IllegalStateException: The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged

    GitHub | 5 months ago | misaochan
    java.lang.IllegalStateException: The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 637, found: 638 Pager id: fr.free.nrw.commons:id/mediaDetailsPager Pager class: class android.support.v4.view.ViewPager Problematic adapter: class fr.free.nrw.commons.media.MediaDetailPagerFragment$MediaDetailAdapter
  3. 0

    Fragment must be a public static class crash error after upgrade repo v9 in android studio

    Stack Overflow | 2 months ago | Scofield Tran
    java.lang.IllegalStateException: Fragment <my project package>.CategoryActivity.ArrayListFragment must be a public static class to be properly recreated from instance state.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Crash when swiping through comment threads near the end

    GitHub | 8 months ago | Alexendoo
    java.lang.IllegalStateException: The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 51, found: 101 Pager id: me.ccrama.redditslide.debug:id/content_view Pager class: class android.support.v4.view.ViewPager Problematic adapter: class me.ccrama.redditslide.Activities.CommentsScreen$OverviewPagerAdapter

  1. Indri Yunita 2 times, last 2 days ago
  2. Ajeet 1 times, last 3 months ago
10 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. 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()
  2. Android Support v4
    ViewPager.onMeasure
    1. android.support.v4.app.BackStackRecord.doAddOp(BackStackRecord.java:435)
    2. android.support.v4.app.BackStackRecord.add(BackStackRecord.java:420)
    3. android.support.v4.app.FragmentStatePagerAdapter.instantiateItem(FragmentStatePagerAdapter.java:123)
    4. android.support.v4.view.ViewPager.addNewItem(ViewPager.java:1006)
    5. android.support.v4.view.ViewPager.populate(ViewPager.java:1154)
    6. android.support.v4.view.ViewPager.populate(ViewPager.java:1088)
    7. android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1614)
    7 frames
  3. Android Platform
    FrameLayout.onMeasure
    1. android.view.View.measure(View.java:15525)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4825)
    3. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1404)
    4. android.widget.LinearLayout.measureVertical(LinearLayout.java:695)
    5. android.widget.LinearLayout.onMeasure(LinearLayout.java:588)
    6. android.view.View.measure(View.java:15525)
    7. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4825)
    8. android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
    8 frames
  4. Android v7
    ContentFrameLayout.onMeasure
    1. android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:135)
    1 frame
  5. Android Platform
    ViewGroup.measureChildWithMargins
    1. android.view.View.measure(View.java:15525)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4825)
    2 frames
  6. Android v7
    ActionBarOverlayLayout.onMeasure
    1. android.support.v7.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:389)
    1 frame
  7. Android Platform
    FrameLayout.onMeasure
    1. android.view.View.measure(View.java:15525)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4825)
    3. android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
    4. android.view.View.measure(View.java:15525)
    5. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4825)
    6. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1404)
    7. android.widget.LinearLayout.measureVertical(LinearLayout.java:695)
    8. android.widget.LinearLayout.onMeasure(LinearLayout.java:588)
    9. android.view.View.measure(View.java:15525)
    10. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4825)
    11. android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
    11 frames
  8. Android
    PhoneWindow$DecorView.onMeasure
    1. com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2438)
    1 frame
  9. Android Platform
    ActivityThread.main
    1. android.view.View.measure(View.java:15525)
    2. android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:1874)
    3. android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1089)
    4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1265)
    5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:989)
    6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4351)
    7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:749)
    8. android.view.Choreographer.doCallbacks(Choreographer.java:562)
    9. android.view.Choreographer.doFrame(Choreographer.java:532)
    10. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735)
    11. android.os.Handler.handleCallback(Handler.java:725)
    12. android.os.Handler.dispatchMessage(Handler.java:92)
    13. android.os.Looper.loop(Looper.java:137)
    14. android.app.ActivityThread.main(ActivityThread.java:5227)
    14 frames
  10. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:511)
    2 frames
  11. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)
    2 frames
  12. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame