I meet first time with this problem. I noticed that above exception is throw when @ParcelConstructor contains boolean fields. Maybe have you got any solutions to put in boolean values to constructor Regards Shogun
Asked
Active
Viewed 340 times
0
-
Use `Parcelize` soo much easier (this is part of kotlin experimental features, but for me it is quite stable). – Boris Strandjev Feb 12 '20 at 12:52
-
Provide an example so I can help? Just tried this in Java (whar Parceler was built for) and it works flawlessly. – John Ericksen Feb 13 '20 at 14:59
1 Answers
0
In this case, you need to add @ParcelProperty.
One example:
@Parcel(Parcel.Serialization.BEAN)
private data class Model @ParcelConstructor constructor(
@ParcelProperty("valid") val isValid: Boolean
)

Cody
- 4,353
- 4
- 39
- 42