My application works well in support libraries 23.1.1. However, after upgrading to 23.2.0 library support, it starts to crash. A failure occurs when I move from an operation back to the main action (for example, I open the information about the action from the main menu of actions in the action, then click the "Back" button to return to the main action, then it crashes).
Failure Log:
FATAL EXCEPTION: main Process: com.myapp.blah.blah, PID: 22124 java.lang.RuntimeException: cannot start the activity ComponentInfo {com.myapp.blah.blah / com.myapp.blah.blah.ui.MainActivity}: java .lang.RuntimeException: Parcel android.os.Parcel@41d10870 : Unmarshalling unknown code type 6881391 at offset 4752 at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2429) in android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:2493) at android.app.ActivityThread.access $ 800 (ActivityThread.java:166) in android.app.ActivityThread $ H.handleMessage (ActivityThread.java:1283) on android.os.Handler.dispatchMessage (Handler.java:102) at android. os.Looper.loop (Looper.java:136) in android.app.ActivityThread.main (ActivityThread.java:5584) in java.lang.reflect.Method.invokeNative (native method) in java.lang.reflect.Method. invoke (Method.java∗15) in com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run (ZygoteInit.java:1268) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1084) at dalvik.system.NativeStart.main (native method), called: java.lang.RuntimeException : Parcel android.os.Parcel@41d10870 : Unmarshalling unknown code type 6881391 at offset 4752 at android.os.Parcel.readValue (Parcel.java:2087) at android.os.Parcel.readArrayMapInternal (Parcel.java:2321) in android.os. Bundle.unparcel (Bundle.java:249) at android.os.Bundle.getSparseParcelableArray (Bundle.java:1273) in com.android.internal.policy.impl.PhoneWindow.restoreHierarchyState (PhoneWindow.java:1884) in android.app .Activity.onRestoreInstanceState (Activity.java:989) in android.app.Activity.performRestoreInstanceState (Activity.java:961) at android.app.Instrumentation.callActivityOnRestoreInstanceState (Instrumentation.java:1145) in android.app.ActivityThread ActivityThread.java:2407) in android.app.ActivityThread .handleLaunchActivity (ActivityThread.java:2493)? at android.app.ActivityThread.access $ 800 (ActivityThread.java:166)? in android.app.ActivityThread $ H.handleMessage (ActivityThread.java:1283)? at android.os.Handler.dispatchMessage (Handler.java:102)? in android.os.Looper.loop (Looper.java:136)? in android.app.ActivityThread.main (ActivityThread.java:5584)? in java.lang.reflect.Method.invokeNative (native method)? in java.lang.reflect.Method.invoke (Method.java∗15)? in com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run (ZygoteInit.java:1268)? at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1084)? in dalvik.system.NativeStart.main (native method)?
A crash occurs only if I set the debug option from the "do not continue actions" developer to . Failure does not occur if this option is turned off.
Accidents occur in debug mode, where Proguard is not used.
I do not pass any packages / packages between actions and do not use startActivityForResult ().
Failure occurs on both pre and post Lollipop devices.
I found here two similar posts and here that may (or may not) be related.
android parcelable parcel android-support-library
henry000
source share