我開發了一個android
應用程序,它在幾天內第一次完美運行。但後來,當我檢查時,它不起作用。現在,當我在我的設備或模擬器中啓動它時,它顯示消息如應用程序xyz意外停止。請再試一次。任何人都可以幫助我嗎?應用程序xyz已意外停止。請再試一次
這是我的logcat
12-31 20:20:52.142: D/AndroidRuntime(303): Shutting down VM
12-31 20:20:52.172: W/dalvikvm(303): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
12-31 20:20:52.202: E/AndroidRuntime(303): FATAL EXCEPTION: main
12-31 20:20:52.202: E/AndroidRuntime(303): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{a.b.c/a.b.c.MapsActivity}: java.lang.ClassNotFoundException: a.b.c.MapsActivity in loader dalvik.system.PathClassLoader[/system/framework/com.google.android.maps.jar:/data/app/a.b.c-2.apk]
12-31 20:20:52.202: E/AndroidRuntime(303): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585)
12-31 20:20:52.202: E/AndroidRuntime(303): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
12-31 20:20:52.202: E/AndroidRuntime(303): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
12-31 20:20:52.202: E/AndroidRuntime(303): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
12-31 20:20:52.202: E/AndroidRuntime(303): at android.os.Handler.dispatchMessage(Handler.java:99)
12-31 20:20:52.202: E/AndroidRuntime(303): at android.os.Looper.loop(Looper.java:123)
12-31 20:20:52.202: E/AndroidRuntime(303): at android.app.ActivityThread.main(ActivityThread.java:4627)
12-31 20:20:52.202: E/AndroidRuntime(303): at java.lang.reflect.Method.invokeNative(Native Method)
12-31 20:20:52.202: E/AndroidRuntime(303): at java.lang.reflect.Method.invoke(Method.java:521)
12-31 20:20:52.202: E/AndroidRuntime(303): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
12-31 20:20:52.202: E/AndroidRuntime(303): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
12-31 20:20:52.202: E/AndroidRuntime(303): at dalvik.system.NativeStart.main(Native Method)
12-31 20:20:52.202: E/AndroidRuntime(303): Caused by: java.lang.ClassNotFoundException: a.b.c.MapsActivity in loader dalvik.system.PathClassLoader[/system/framework/com.google.android.maps.jar:/data/app/a.b.c-2.apk]
12-31 20:20:52.202: E/AndroidRuntime(303): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
12-31 20:20:52.202: E/AndroidRuntime(303): at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
12-31 20:20:52.202: E/AndroidRuntime(303): at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
12-31 20:20:52.202: E/AndroidRuntime(303): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
12-31 20:20:52.202: E/AndroidRuntime(303): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
12-31 20:20:52.202: E/AndroidRuntime(303): ... 11 more
在這裏發佈logcat .. –