当我在模拟器中运行我的应用程序时,它会意外停止。 我不明白我的项目中的错误在哪里,因为eclipse中的任何文件都无法显示它。 但是在LOGCAT错误中显示如下:
01-24 22:42:14.741: ERROR/AndroidRuntime(1224): FATAL EXCEPTION: main
01-24 22:42:14.741: ERROR/AndroidRuntime(1224): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.engime/com.example.engime.EnigmaPuzzle}: java.lang.ClassNotFoundException: com.example.engime.EnigmaPuzzle in loader dalvik.system.PathClassLoader[/data/app/com.example.engime-1.apk]
01-24 22:42:14.741: ERROR/AndroidRuntime(1224): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1569)
01-24 22:42:14.741: ERROR/AndroidRuntime(1224): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
01-24 22:42:14.741: ERROR/AndroidRuntime(1224): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
01-24 22:42:14.741: ERROR/AndroidRuntime(1224): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
01-24 22:42:14.741: ERROR/AndroidRuntime(1224): at android.os.Handler.dispatchMessage(Handler.java:99)
01-24 22:42:14.741: ERROR/AndroidRuntime(1224): at android.os.Looper.loop(Looper.java:123)
01-24 22:42:14.741: ERROR/AndroidRuntime(1224): at android.app.ActivityThread.main(ActivityThread.java:3683)
01-24 22:42:14.741: ERROR/AndroidRuntime(1224): at java.lang.reflect.Method.invokeNative(Native Method)
01-24 22:42:14.741: ERROR/AndroidRuntime(1224): at java.lang.reflect.Method.invoke(Method.java:507)
01-24 22:42:14.741: ERROR/AndroidRuntime(1224): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
01-24 22:42:14.741: ERROR/AndroidRuntime(1224): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
01-24 22:42:14.741: ERROR/AndroidRuntime(1224): at dalvik.system.NativeStart.main(Native Method)
01-24 22:42:14.741: ERROR/AndroidRuntime(1224): Caused by: java.lang.ClassNotFoundException: com.example.engime.EnigmaPuzzle in loader dalvik.system.PathClassLoader[/data/app/com.example.engime-1.apk]
01-24 22:42:14.741: ERROR/AndroidRuntime(1224): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
01-24 22:42:14.741: ERROR/AndroidRuntime(1224): at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
01-24 22:42:14.741: ERROR/AndroidRuntime(1224): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
01-24 22:42:14.741: ERROR/AndroidRuntime(1224): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
01-24 22:42:14.741: ERROR/AndroidRuntime(1224): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1561)