Android JobIntentService的BadParcelableException

Android JobIntentService的BadParcelableException,android,jobintentservice,Android,Jobintentservice,在Android O上使用JobIntentService,在尝试读取额外的可打包文件时获取BadParcelable Android运行时异常。在

在Android O上使用JobIntentService,在尝试读取额外的可打包文件时获取BadParcelable Android运行时异常。在
AndroidRuntime: android.os.BadParcelableException: ClassNotFoundException when unmarshalling <>
AndroidRuntime:android.os.BadParcelableException:ClassNotFoundException解组时

用于解组的类加载器集(setExtrasClassLoader)是默认值,它使用的BootClassLoader无法找到jobdispatcher中看起来不存在问题的类。那条线索是从哪里来的 播放服务和它的过程,显然找不到一个在您的 应用程序。通常应避免在以下位置使用自定义包裹: 离开你的流程


哪种设备?是三星吗?这是三星的常见问题,在确保你的代码一切正常之前。它的像素。在同一台设备上使用IntentService时,代码工作正常。如果没有软件,任何人都很难帮助您。这将包括完整的Java堆栈跟踪,以及处理此额外代码的代码。一般来说,正如Toe Pyae Sone Oo所指出的,我建议避免自定义的
Parcelable
类。一旦使用intent.setExtrasClassLoader(This.getClass().getClassLoader())显式设置了类装入器,这个问题就得到了解决