youxiaochen / expandable-recyclerview

ExpandableRecyclerView by RecyclerView logic as ExpandableListView, 核心类ExpandableConnector, GroupMetadata,PositionMetadata
4 stars 2 forks source link

ClassNotFoundException #2

Open taoranziwangji opened 1 year ago

taoranziwangji commented 1 year ago

出错堆栈

1 java.lang.RuntimeException:Unable to start activity ComponentInfo{com.xx.xxxxx/com.xx.xxxxx.module.main.views.MainActivity}: android.os.BadParcelableException: ClassNotFoundException when unmarshalling: androidx.recyclerview.widget.RecyclerView$SavedState 2 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3761) 3 ...... 4 Caused by: 5 java.lang.ClassNotFoundException:androidx.recyclerview.widget.RecyclerView$SavedState 6 java.lang.Class.classForName(Native Method) 7 java.lang.Class.forName(Class.java:454) 8 android.os.Parcel.readParcelableCreator(Parcel.java:3391) 9 android.os.Parcel.readParcelable(Parcel.java:3325) 10 android.view.AbsSavedState.(AbsSavedState.java:67) 11 android.view.View$BaseSavedState.(View.java:29522) 12 android.view.View$BaseSavedState.(View.java:29511) 13 chen.you.expandable.ExpandableRecyclerView$SavedState.(ExpandableRecyclerView.java:384) 14 chen.you.expandable.ExpandableRecyclerView$SavedState.(ExpandableRecyclerView.java:374) 15 chen.you.expandable.ExpandableRecyclerView$SavedState$1.createFromParcel(ExpandableRecyclerView.java:397) 16 chen.you.expandable.ExpandableRecyclerView$SavedState$1.createFromParcel(ExpandableRecyclerView.java:395) 17 android.os.Parcel.readParcelable(Parcel.java:3334) 18 android.os.Parcel.readValue(Parcel.java:3227) 19 android.os.Parcel.readSparseArrayInternal(Parcel.java:3707) 20 android.os.Parcel.readSparseArray(Parcel.java:2845)

youxiaochen commented 1 year ago

-keepclassmembers class * implements android.os.Parcelable { static ** CREATOR; }