Parcelable encountered IOException writing serializable object (name = java.util.ArrayList)
iffanmajid opened this issue · 1 comments
iffanmajid commented
Error:
Caused by: java.lang.RuntimeException: Parcelable encountered IOException writing serializable object (name = java.util.ArrayList)
at android.os.Parcel.writeSerializable(Parcel.java:1468)
at paperparcel.internal.SerializableAdapter.writeToParcel(SerializableAdapter.java:32)
at paperparcel.internal.SerializableAdapter.writeToParcel(SerializableAdapter.java:25)
Reproduce: When switching to another recent app
Question: How to use Papercel in data class with arraylist parameters and default value?
iffanmajid commented
I found a workaround, change arrayList to mutableList.