gpt4 book ai didi

android - 试图通过logcat查找运行时错误,不明白如何读取它

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

我有一个运行时错误,无法弄清楚它在哪里。我看着 logcat,不明白我在看它。谁能帮我理解这意味着什么,这样我就可以找出去哪里修复错误。

02-13 10:50:10.868: D/AndroidRuntime(529): Shutting down VM
02-13 10:50:10.868: W/dalvikvm(529): threadid=1: thread exiting with uncaught exception (group=0x40015560)
02-13 10:50:10.948: E/AndroidRuntime(529): FATAL EXCEPTION: main
02-13 10:50:10.948: E/AndroidRuntime(529): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.signalsetapp/com.signalsetapp.SignalSetMobileAppActivity}: java.lang.ClassNotFoundException: com.signalsetapp.SignalSetMobileAppActivity in loader dalvik.system.PathClassLoader[/data/app/com.signalsetapp-2.apk]
02-13 10:50:10.948: E/AndroidRuntime(529): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1544)
02-13 10:50:10.948: E/AndroidRuntime(529): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1638)
02-13 10:50:10.948: E/AndroidRuntime(529): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
02-13 10:50:10.948: E/AndroidRuntime(529): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:928)
02-13 10:50:10.948: E/AndroidRuntime(529): at android.os.Handler.dispatchMessage(Handler.java:99)
02-13 10:50:10.948: E/AndroidRuntime(529): at android.os.Looper.loop(Looper.java:123)
02-13 10:50:10.948: E/AndroidRuntime(529): at android.app.ActivityThread.main(ActivityThread.java:3647)
02-13 10:50:10.948: E/AndroidRuntime(529): at java.lang.reflect.Method.invokeNative(Native Method)
02-13 10:50:10.948: E/AndroidRuntime(529): at java.lang.reflect.Method.invoke(Method.java:507)
02-13 10:50:10.948: E/AndroidRuntime(529): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
02-13 10:50:10.948: E/AndroidRuntime(529): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
02-13 10:50:10.948: E/AndroidRuntime(529): at dalvik.system.NativeStart.main(Native Method)
02-13 10:50:10.948: E/AndroidRuntime(529): Caused by: java.lang.ClassNotFoundException: com.signalsetapp.SignalSetMobileAppActivity in loader dalvik.system.PathClassLoader[/data/app/com.signalsetapp-2.apk]
02-13 10:50:10.948: E/AndroidRuntime(529): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
02-13 10:50:10.948: E/AndroidRuntime(529): at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
02-13 10:50:10.948: E/AndroidRuntime(529): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
02-13 10:50:10.948: E/AndroidRuntime(529): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
02-13 10:50:10.948: E/AndroidRuntime(529): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1536)
02-13 10:50:10.948: E/AndroidRuntime(529): ... 11 more
02-13 10:50:14.748: I/Process(529): Sending signal. PID: 529 SIG: 9

最佳答案

Dalvik 无法实例化类 SignalSetMobileAppActivity:

Unable to instantiate activity ComponentInfo{com.signalsetapp/com.signalsetapp.SignalSetMobileAppActivity}:

因为,它找不到类:

Caused by: java.lang.ClassNotFoundException: com.signalsetapp.SignalSetMobileAppActivity in loader dalvik.system.PathClassLoader[/data/app/com.signalsetapp-2.apk]

当您没有在 list 中声明 Activity 时,通常会发生这种情况。类似的东西:

<activity android:name="com.signalsetapp.SignalSetMobileAppActivity" /> 

关于android - 试图通过logcat查找运行时错误,不明白如何读取它,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9266257/

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