Parcelable encounteredClassNotFoundException reading a Serializable object

廉价感情. 提交于 2019-12-09 02:17:29
Nick Palmer

I believe you may be running into class loader issues. You need to call setClassLoader() on the Bundle before you read serialized objects out of them.

Make sure you call setClassLoader(SaveMe.class.getClassLoader()) before reading from the bundle.

If the compiler cannot find SaveMe when compiling then for sure that class is missing in the target application as Damp suggested.

See this answer for more details: Parcelable inside bundle which is added to Parcel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!