BadParcelableException:ClassNotFoundException when unmarshalling: android.support.v4.app.FragmentManagerState

前端 未结 2 1911
故里飘歌
故里飘歌 2021-02-02 16:17

I\'ve migrated to SDK Android 27.1.0 3 days ago, and there are some crashs like this one, I can\'t understand why. It appears (currently) on Android 8 and 6.

Ba         


        
2条回答
  •  离开以前
    2021-02-02 16:59

    Same issues after update android library to 27.1.0

    My viewPager has 3 tabs, this crash occurs if I select first or last tab, then after loss activity and returning to viewPager chose another tab got this crash.

    Tested with 2 tabs has no crash.

    My fix is

    viewPager.setOffscreenPageLimit(2);
    

    and crash is gone

    EDIT

    Updating to 27.1.1 has resolved issue

提交回复
热议问题