简体   繁体   中英

Parcelable encountered IOException writing

I am implementing Serializable in POJO, when I minimize the android app then it throws following error
E/UncaughtException: java.lang.RuntimeException: Parcelable encountered IOException writing serializable object
Caused by: java.io.NotSerializableException: java.util.AbstractList$SubAbstractListRandomAccess
Parent and Inner class both implemented Serializable but still getting same error

Looks like your POJO class has List field which may or may not be ArrayList . Use ArrayList instead.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM