简历上的Android崩溃。如何解释这个例外?

时间:2012-06-11 16:01:06

标签: java android

我收到了一些像这样的崩溃报告,我不确定它是什么意思。 只是为了说清楚 - 这是我无法重现的。这是由ACRA报道的

'在1232'处解组未知类型代码2131296357

下面的完整错误堆栈跟踪:

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.idatt/com.idatt.activities.NewMailActivity}: java.lang.RuntimeException: Parcel android.os.Parcel@40651010: Unmarshalling unknown type code 2131296357 at offset 1232
 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1651)
 at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
 at android.app.ActivityThread.access$1500(ActivityThread.java:117)
 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
 at android.os.Handler.dispatchMessage(Handler.java:99)
 at android.os.Looper.loop(Looper.java:130)
 at android.app.ActivityThread.main(ActivityThread.java:3687)
 at java.lang.reflect.Method.invokeNative(Native Method)
 at java.lang.reflect.Method.invoke(Method.java:507)
 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
 at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: Parcel android.os.Parcel@40651010: Unmarshalling unknown type code 2131296357 at offset 1232
 at android.os.Parcel.readValue(Parcel.java:1913)
 at android.os.Parcel.readSparseArrayInternal(Parcel.java:2112)
 at android.os.Parcel.readSparseArray(Parcel.java:1568)
 at android.os.Parcel.readValue(Parcel.java:1903)
 at android.os.Parcel.readMapInternal(Parcel.java:2083)
 at android.os.Bundle.unparcel(Bundle.java:208)
 at android.os.Bundle.getSparseParcelableArray(Bundle.java:1167)
 at com.android.internal.policy.impl.PhoneWindow.restoreHierarchyState(PhoneWindow.java:1682)
 at android.app.Activity.onRestoreInstanceState(Activity.java:844)
 at android.app.Activity.performRestoreInstanceState(Activity.java:816)
 at android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java:1096)
 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1629)
 ... 11 more
java.lang.RuntimeException: Parcel android.os.Parcel@40651010: Unmarshalling unknown type code 2131296357 at offset 1232
 at android.os.Parcel.readValue(Parcel.java:1913)
 at android.os.Parcel.readSparseArrayInternal(Parcel.java:2112)
 at android.os.Parcel.readSparseArray(Parcel.java:1568)
 at android.os.Parcel.readValue(Parcel.java:1903)
 at android.os.Parcel.readMapInternal(Parcel.java:2083)
 at android.os.Bundle.unparcel(Bundle.java:208)
 at android.os.Bundle.getSparseParcelableArray(Bundle.java:1167)
 at com.android.internal.policy.impl.PhoneWindow.restoreHierarchyState(PhoneWindow.java:1682)
 at android.app.Activity.onRestoreInstanceState(Activity.java:844)
 at android.app.Activity.performRestoreInstanceState(Activity.java:816)
 at android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java:1096)
 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1629)
 at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
 at android.app.ActivityThread.access$1500(ActivityThread.java:117)
 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
 at android.os.Handler.dispatchMessage(Handler.java:99)
 at android.os.Looper.loop(Looper.java:130)
 at android.app.ActivityThread.main(ActivityThread.java:3687)
 at java.lang.reflect.Method.invokeNative(Native Method)
 at java.lang.reflect.Method.invoke(Method.java:507)
 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
 at dalvik.system.NativeStart.main(Native Method)

1 个答案:

答案 0 :(得分:6)

在模拟器上,应该有一个Dev Tools应用程序。打开该应用程序,从列表中选择“开发设置”,然后选中“立即销毁活动”旁边的框。现在,当您运行应用程序时,当您点击主页按钮时,前景活动将被销毁。然后,您可以通过长按或从应用程序屏幕重新启动应用程序以重新创建错误。