安卓开发,很抱歉,应用程序意外停止,请重试 添加了按钮,一按按钮就报错
11-2805:09:08.141:D/AndroidRuntime(279):ShuttingdownVM11-2805:09:08.141:W/dalvikvm(27...
11-28 05:09:08.141: D/AndroidRuntime(279): Shutting down VM
11-28 05:09:08.141: W/dalvikvm(279): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
11-28 05:09:08.161: E/AndroidRuntime(279): FATAL EXCEPTION: main
11-28 05:09:08.161: E/AndroidRuntime(279): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.activity/ activity.Activity01}; have you declared this activity in your AndroidManifest.xml?
11-28 05:09:08.161: E/AndroidRuntime(279): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1404)
11-28 05:09:08.161: E/AndroidRuntime(279): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1378)
11-28 05:09:08.161: E/AndroidRuntime(279): at android.app.Activity.startActivityForResult(Activity.java:2817)
11-28 05:09:08.161: E/AndroidRuntime(279): at android.app.Activity.startActivity(Activity.java:2923)
11-28 05:09:08.161: E/AndroidRuntime(279): at activity.MainActivity.onClick(MainActivity.java:46)
11-28 05:09:08.161: E/AndroidRuntime(279): at android.view.View.performClick(View.java:2408)
11-28 05:09:08.161: E/AndroidRuntime(279): at android.view.View$PerformClick.run(View.java:8816)
11-28 05:09:08.161: E/AndroidRuntime(279): at android.os.Handler.handleCallback(Handler.java:587)
11-28 05:09:08.161: E/AndroidRuntime(279): at android.os.Handler.dispatchMessage(Handler.java:92)
11-28 05:09:08.161: E/AndroidRuntime(279): at android.os.Looper.loop(Looper.java:123)
11-28 05:09:08.161: E/AndroidRuntime(279): at android.app.ActivityThread.main(ActivityThread.java:4627)
11-28 05:09:08.161: E/AndroidRuntime(279): at java.lang.reflect.Method.invokeNative(Native Method)
11-28 05:09:08.161: E/AndroidRuntime(279): at java.lang.reflect.Method.invoke(Method.java:521)
11-28 05:09:08.161: E/AndroidRuntime(279): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
11-28 05:09:08.161: E/AndroidRuntime(279): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
11-28 05:09:08.161: E/AndroidRuntime(279): at dalvik.system.NativeStart.main(Native Method) 展开
11-28 05:09:08.141: W/dalvikvm(279): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
11-28 05:09:08.161: E/AndroidRuntime(279): FATAL EXCEPTION: main
11-28 05:09:08.161: E/AndroidRuntime(279): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.activity/ activity.Activity01}; have you declared this activity in your AndroidManifest.xml?
11-28 05:09:08.161: E/AndroidRuntime(279): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1404)
11-28 05:09:08.161: E/AndroidRuntime(279): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1378)
11-28 05:09:08.161: E/AndroidRuntime(279): at android.app.Activity.startActivityForResult(Activity.java:2817)
11-28 05:09:08.161: E/AndroidRuntime(279): at android.app.Activity.startActivity(Activity.java:2923)
11-28 05:09:08.161: E/AndroidRuntime(279): at activity.MainActivity.onClick(MainActivity.java:46)
11-28 05:09:08.161: E/AndroidRuntime(279): at android.view.View.performClick(View.java:2408)
11-28 05:09:08.161: E/AndroidRuntime(279): at android.view.View$PerformClick.run(View.java:8816)
11-28 05:09:08.161: E/AndroidRuntime(279): at android.os.Handler.handleCallback(Handler.java:587)
11-28 05:09:08.161: E/AndroidRuntime(279): at android.os.Handler.dispatchMessage(Handler.java:92)
11-28 05:09:08.161: E/AndroidRuntime(279): at android.os.Looper.loop(Looper.java:123)
11-28 05:09:08.161: E/AndroidRuntime(279): at android.app.ActivityThread.main(ActivityThread.java:4627)
11-28 05:09:08.161: E/AndroidRuntime(279): at java.lang.reflect.Method.invokeNative(Native Method)
11-28 05:09:08.161: E/AndroidRuntime(279): at java.lang.reflect.Method.invoke(Method.java:521)
11-28 05:09:08.161: E/AndroidRuntime(279): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
11-28 05:09:08.161: E/AndroidRuntime(279): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
11-28 05:09:08.161: E/AndroidRuntime(279): at dalvik.system.NativeStart.main(Native Method) 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询