我一直得到這個無法打開跟蹤錯誤在我的eclipse安卓項目出於某種原因。一切都沒有語法錯誤。android應用程序項目錯誤
這裏是我的日誌文本如下。
05-20 19:57:02.330: D/AndroidRuntime(30377): Shutting down VM
05-20 19:57:02.330: W/dalvikvm(30377): threadid=1: thread exiting with uncaught exception (group=0x4001e578)
05-20 19:57:02.340: E/AndroidRuntime(30377): FATAL EXCEPTION: main
05-20 19:57:02.340: E/AndroidRuntime(30377): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.sudoku/com.example.sudoku.Sudoku}: java.lang.ClassNotFoundException: com.example.sudoku.Sudoku in loader dalvik.system.PathClassLoader[/data/app/com.example.sudoku-2.apk]
05-20 19:57:02.340: E/AndroidRuntime(30377): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1573)
05-20 19:57:02.340: E/AndroidRuntime(30377): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
05-20 19:57:02.340: E/AndroidRuntime(30377): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
05-20 19:57:02.340: E/AndroidRuntime(30377): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
05-20 19:57:02.340: E/AndroidRuntime(30377): at android.os.Handler.dispatchMessage(Handler.java:99)
05-20 19:57:02.340: E/AndroidRuntime(30377): at android.os.Looper.loop(Looper.java:130)
05-20 19:57:02.340: E/AndroidRuntime(30377): at android.app.ActivityThread.main(ActivityThread.java:3691)
05-20 19:57:02.340: E/AndroidRuntime(30377): at java.lang.reflect.Method.invokeNative(Native Method)
05-20 19:57:02.340: E/AndroidRuntime(30377): at java.lang.reflect.Method.invoke(Method.java:507)
05-20 19:57:02.340: E/AndroidRuntime(30377): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907)
05-20 19:57:02.340: E/AndroidRuntime(30377): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665)
05-20 19:57:02.340: E/AndroidRuntime(30377): at dalvik.system.NativeStart.main(Native Method)
05-20 19:57:02.340: E/AndroidRuntime(30377): Caused by: java.lang.ClassNotFoundException: com.example.sudoku.Sudoku in loader dalvik.system.PathClassLoader[/data/app/com.example.sudoku-2.apk]
05-20 19:57:02.340: E/AndroidRuntime(30377): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
05-20 19:57:02.340: E/AndroidRuntime(30377): at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
05-20 19:57:02.340: E/AndroidRuntime(30377): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
05-20 19:57:02.340: E/AndroidRuntime(30377): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
05-20 19:57:02.340: E/AndroidRuntime(30377): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1565)
05-20 19:57:02.340: E/AndroidRuntime(30377): ... 11 more
05-20 19:57:04.352: I/dalvikvm(30377): threadid=4: reacting to signal 3
05-20 19:57:04.352: E/dalvikvm(30377): Unable to open stack trace file '/data/anr/traces.txt': Permission denied
05-20 19:57:12.039: I/Process(30377): Sending signal. PID: 30377 SIG: 9
儘管拋出了這個錯誤,你的代碼仍然運行嗎? – MarsAtomic
是代碼運行 但是,一旦我的手機上運行它日誌說,它無法打開堆棧跟蹤文件 和我的電話說,強制關閉應用 – user2223094
你強制關閉後,它無需額外的差錯正常運行? – MarsAtomic