How to fix Unmarshalling unknown type code XXX at offset YYY in Android?

前端 未结 10 1919
小鲜肉
小鲜肉 2020-12-05 07:04

I\'m having app crash on resume because of Unmarshalling exception. I\'ve checked all the Serializables have constructor with no parameters and even checked all the serializ

10条回答
  •  我在风中等你
    2020-12-05 07:16

    In my case it was caused by data size exceeding max limit of that can be put to Parcel which is about 1 MB.

    Solution: optimize your Parcelable code to put as less data as possible (e.g. do not put Serializable objects to Parcel)

提交回复
热议问题