在Android O上使用JobIntentService,在尝试读取可打包的额外内容时获得BadParcelable Android运行时异常。在JobIntentService立即启动服务的
AndroidRuntime: android.os.BadParcelableException: ClassNotFoundException when unmarshalling <>
用于解组的类加载器集(setExtrasClassLoader)是默认的,它使用无法找到类的BootClassLoader
发布于 2018-02-19 19:05:00
这在jobdispatcher中看起来不是问题。该堆栈跟踪来自Play Services,它的进程显然无法在您的应用程序中找到。一般情况下,应避免在离开进程的位置使用自定义包
https://commonsware.com/blog/2016/07/22/be-careful-where-you-use-custom-parcelables.html
https://stackoverflow.com/questions/48864486
复制相似问题