gpt4 book ai didi

android - 在 Android 设备上执行内置 Android 应用程序的奇怪异常

转载 作者:行者123 更新时间:2023-11-29 01:25:47 25 4
gpt4 key购买 nike

当我尝试在 Android 设备上执行我的 Android 应用程序时,我的 Android 应用程序发生奇怪的崩溃。如果我尝试执行我的应用程序,我会收到此错误:

堆栈跟踪

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.remaxer.codenameone.edmtuner/com.remaxer.codenameone.edmtuner.EdmTunerStub}: java.lang.NullPointerException: Attempt to invoke virtual method 'com.codename1.j.o com.codename1.impl.a.z()' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2658)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2723)
at android.app.ActivityThread.access$900(ActivityThread.java:172)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1422)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:5832)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'com.codename1.j.o com.codename1.impl.a.z()' on a null object reference
at com.codename1.j.k.x(Display.java:2172)
at com.codename1.impl.android.CodenameOneActivity.onCreateOptionsMenu(CodenameOneActivity.java:358)
at android.app.Activity.onCreatePanelMenu(Activity.java:2921)
at com.android.internal.policy.impl.PhoneWindow.preparePanel(PhoneWindow.java:599)
at com.android.internal.policy.impl.PhoneWindow.doInvalidatePanelMenu(PhoneWindow.java:973)
at com.android.internal.policy.impl.PhoneWindow$1.run(PhoneWindow.java:305)
at com.android.internal.policy.impl.PhoneWindow.doPendingInvalidatePanelMenu(PhoneWindow.java:947)
at com.android.internal.policy.impl.PhoneWindow.restoreHierarchyState(PhoneWindow.java:2185)
at android.app.Activity.onRestoreInstanceState(Activity.java:1082)
at android.app.Activity.performRestoreInstanceState(Activity.java:1027)
at android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java:1175)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2631)
... 10 more

然后应用程序崩溃,当我再次打开它时,错误消失了。然后等待大约 1 小时错误再次上升。

我不知道如何解决这个问题。

最佳答案

这似乎是一个代号为 android 框架的错误,它已经在 git 存储库中得到修复

关于android - 在 Android 设备上执行内置 Android 应用程序的奇怪异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34141063/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com