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.