错误日志:Parcelable protocol requires a Parcelable.Creator object called CREATOR on class com.example.*.model.c
出现原因:实现了 Parcelable的实体类被混淆了,java找不到它
解决方法:proguard-rules.pro中添加如下代码:
-keepnames class * implements android.os.Parcelable {
public static final ** CREATOR;
}
网友评论