0

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

1 Answers1

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