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

前端 未结 2 1910
故里飘歌
故里飘歌 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:37

    @XJIOP said is correct i also have same issue on my production, but i was unable to find what the crash, i followed @XJIOP path and produce the bug,i resolved the bug by updating the compact version from

    appcompat 27.1.0 to 27.1.1

    since i am using proguard i also added the following line to my proguard

    add the following line to proguard if you are using proguard on your production build else ignore

    -keepnames class * implements android.os.Parcelable {
        public static final ** CREATOR;
    }
    

    After adding the pro guard line and updating the compact lib i was able to fix the issue and the bug hasent reported yet on my updated production build. hope this will help some others

提交回复
热议问题