ClassNotFoundException when using custom Parcelable

前端 未结 3 1803
孤街浪徒
孤街浪徒 2020-12-30 07:16

I use a custom Parcelable to carry some data to a BroadcastReceiver. Here is what i do:

I register my intent and set the extra Parcelable on it along with an extra c

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-30 07:45

    Put com.company.project.MyParcelable in the actual application, instead of doing whatever games you are playing with classloaders. Then, it should be available from both the sender and recipient of the Intent.

提交回复
热议问题