我在摩托罗拉手机(moto e5和Android版本:8.0.0)中遇到有关解组Parcelables的错误,但我根本没有实现Parcelables。 SO中的post表示可能是因为proguard,所以我尝试了接受的解决方案,但没有帮助,因此我在{中完全使用useProguard false
丢弃了proguard。问题仍然存在。
这是错误日志:
java.lang.RuntimeException: Unable to start activity ComponentInfo{app.co.in/app.co.in.activity.MainActivity}: java.lang.RuntimeException: Parcel android.os.Parcel@4ad5ab4: Unmarshalling unknown type code 7274595 at offset 1124
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2900)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2979)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1634)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6673)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:769)
Caused by: java.lang.RuntimeException: Parcel android.os.Parcel@4ad5ab4: Unmarshalling unknown type code 7274595 at offset 1124
at android.os.Parcel.readValue(Parcel.java:2755)
at android.os.Parcel.readSparseArrayInternal(Parcel.java:3124)
at android.os.Parcel.readSparseArray(Parcel.java:2338)
at android.os.Parcel.readValue(Parcel.java:2733)
at android.os.Parcel.readArrayMapInternal(Parcel.java:3043)
at android.os.BaseBundle.unparcel(BaseBundle.java:257)
at android.os.Bundle.getSparseParcelableArray(Bundle.java:958)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1361)
at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1784)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1852)
at android.support.v4.app.FragmentManagerImpl.dispatchStateChange(FragmentManager.java:3269)
at android.support.v4.app.FragmentManagerImpl.dispatchCreate(FragmentManager.java:3223)
at android.support.v4.app.FragmentController.dispatchCreate(FragmentController.java:190)
at android.support.v4.app.FragmentActivity.onCreate(FragmentActivity.java:369)
at android.support.v7.app.AppCompatActivity.onCreate(AppCompatActivity.java:85)
at orionedutech.co.in.activity.MainActivity.onCreate(MainActivity.java:96)
at android.app.Activity.performCreate(Activity.java:6984)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1235)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2853)
... 9 more
有人可以帮忙吗?