JobIntentService的BadParcelableException

时间:2018-02-19 10:49:48

标签: android jobintentservice

在Android O上使用JobIntentService,在尝试读取可分配的额外内容时获取BadParcelable Android运行时异常。没有观察到关于<在JobIntentService立即启动服务的地方

AndroidRuntime: android.os.BadParcelableException: ClassNotFoundException when unmarshalling <>

用于解组的类加载器(setExtrasClassLoader)是默认的,它使用无法找到类的BootClassLoader

1 个答案:

答案 0 :(得分:1)

这在jobdispatcher中看起来不像是一个问题。堆栈跟踪来自 播放服务和它的过程显然无法找到你的 应用程序。您通常应该避免在那些地方使用自定义parcelables 离开你的过程

https://commonsware.com/blog/2016/07/22/be-careful-where-you-use-custom-parcelables.html

相关问题