0

我用 Eclipse 重新安装了整个 SDK,但没有骰子。我完全不知道如何调试它。我应该注意到它在我伙伴的机器上运行良好,但他在手机上使用的是 4.1.2 ROM。这是错误日志: http: //pastebin.com/yx2XT8qE

07-13 16:45:23.581: W/dalvikvm(12926): Unable to resolve superclass of Lcom/ahhaproductions/SMSapp/SMSapp; (42)
07-13 16:45:23.581: W/dalvikvm(12926): Link of class 'Lcom/ahhaproductions/SMSapp/SMSapp;' failed
07-13 16:45:23.581: D/AndroidRuntime(12926): Shutting down VM
07-13 16:45:23.581: W/dalvikvm(12926): threadid=1: thread exiting with uncaught exception (group=0x40b6b930)
07-13 16:45:23.591: I/Process(12926): Sending signal. PID: 12926 SIG: 9
07-13 16:45:23.591: E/AndroidRuntime(12926): FATAL EXCEPTION: main
07-13 16:45:23.591: E/AndroidRuntime(12926): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.ahhaproductions.SMSapp/com.ahhaproductions.SMSapp.SMSapp}: java.lang.ClassNotFoundException: Didn't find class "com.ahhaproductions.SMSapp.SMSapp" on path: /mnt/asec/com.ahhaproductions.SMSapp-2/pkg.apk
07-13 16:45:23.591: E/AndroidRuntime(12926):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2224)
07-13 16:45:23.591: E/AndroidRuntime(12926):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2358)
07-13 16:45:23.591: E/AndroidRuntime(12926):    at android.app.ActivityThread.access$600(ActivityThread.java:153)
07-13 16:45:23.591: E/AndroidRuntime(12926):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1247)
07-13 16:45:23.591: E/AndroidRuntime(12926):    at android.os.Handler.dispatchMessage(Handler.java:99)
07-13 16:45:23.591: E/AndroidRuntime(12926):    at android.os.Looper.loop(Looper.java:137)
07-13 16:45:23.591: E/AndroidRuntime(12926):    at android.app.ActivityThread.main(ActivityThread.java:5227)
07-13 16:45:23.591: E/AndroidRuntime(12926):    at java.lang.reflect.Method.invokeNative(Native Method)
07-13 16:45:23.591: E/AndroidRuntime(12926):    at java.lang.reflect.Method.invoke(Method.java:511)
07-13 16:45:23.591: E/AndroidRuntime(12926):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
07-13 16:45:23.591: E/AndroidRuntime(12926):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)
07-13 16:45:23.591: E/AndroidRuntime(12926):    at dalvik.system.NativeStart.main(Native Method)
07-13 16:45:23.591: E/AndroidRuntime(12926): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.ahhaproductions.SMSapp.SMSapp" on path: /mnt/asec/com.ahhaproductions.SMSapp-2/pkg.apk
07-13 16:45:23.591: E/AndroidRuntime(12926):    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
07-13 16:45:23.591: E/AndroidRuntime(12926):    at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
07-13 16:45:23.591: E/AndroidRuntime(12926):    at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
07-13 16:45:23.591: E/AndroidRuntime(12926):    at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
07-13 16:45:23.591: E/AndroidRuntime(12926):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2215)
07-13 16:45:23.591: E/AndroidRuntime(12926):    ... 11 more
4

1 回答 1

0

这似乎很有见地:Android java.lang.RuntimeException:无法实例化活动 ComponentInfo

我决定右键单击项目>构建路径>配置构建路径在这里我更改了顺序:

原始订单:

SMSApp/src,
SMSApp/gen,
Android 4.2.2,
Android Private Libraries,
Android Dependencies

固定顺序:

Android Private Libraries,
SMSApp/src,
SMSApp/gen,
Android 4.2.2,
Android Dependencies

确保检查所有带有依赖项的(或全部)

然后我像往常一样清理项目并运行它并且它工作。

编辑:根据下面 Dpa99c 的评论和此处的链接,显然排序无关紧要。

于 2013-07-13T22:58:10.933 回答