parceler: Unable to find generated Parcelable class...
Hi! I’m getting a error using Parcels.wrap in my class:
@Parcel(Parcel.Serialization.BEAN)
public class UserVO {
@Expose private String socialId;
@Expose private String firstName;
@Expose private String lastName;
@Expose private String email;
@Expose private String password;
@Expose private Gender gender;
@Expose private String phoneNumber;
@Expose private boolean terms;
@Expose private boolean notification;
@Expose private DateType birthday;
@Expose private String cpf;
getters and setters...
}
And when I try to:
Parcels.wrap(userVO)
I got this error Unable to find generated Parcelable class for com.package.name.UserVO, verify that your class is configured properly and that the Parcelable class com.package.name.UserVO$$Parcelable is generated by Parceler.
I also had tried this:
Parcels.wrap(UserVO.class, userVO)
But got the same result. By now, to complete my task I’m using the generated class:
new UserVO$$Parcelable(userVO)
Does anyone already had this issue and can help me? Thank you!
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 63 (34 by maintainers)
Getting: Unable to find generated Parcelable class for com.mark.mhgenguide.model.ae, verify that your class is configured properly and that the Parcelable class com.mark.mhgenguide.model.ae$$Parcelable is generated by Parceler.
The original class is being generated by parceler, but not with the obfuscated name.
Nevermind, found a set of rules that worked:
-keep interface org.parceler.Parcel -keep @org.parceler.Parcel class * { *; } -keep class *$$Parcelable { *; } -keep class org.parceler.Parceler$$Parcels
@Arinzeokeke, you’re missing the Parceler annotaion processor, use: