Caused by android.os.BadParcelableException: Parcelable protocol requires subclassing from Parcelable
is happening even my data class implement
Parcelable
interface and annotate with
@Parcelizee
, Any kind of hints/context would be appreciated
😶 1
z
zsmb
01/28/2022, 5:17 PM
If you can share a minimal sample project that produces this, I'd be happy to look at it. Perhaps your Gradle configuration isn't correct?
a
Ali
01/28/2022, 5:50 PM
The problem is that it doesn't occur frequently and also can't reproduce it in local device(issue is from production). Checked all the possible reason but no clue why it crash sometimes.
e
escodro
01/28/2022, 6:11 PM
Maybe, if it is happening in production, it is related to ProGuard/R8 rules? Your Parcelable may be obfuscated and not able to be accessed.
a
Ali
01/28/2022, 6:35 PM
I think I don't need to set the rule explicitly since by default its already does this