学习android,run as 之后出现The application *** has stopped unexpectedly.Please try again.logcat的error内容如下:06-25 02:06:02.944:E/AndroidRuntime(598):Uncaught handler:thread main exiting due to uncaught exception06-25 02:06:02.954:E/An

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/24 02:45:25
学习android,runas之后出现Theapplication***hasstoppedunexpectedly.Pleasetryagain.logcat的error内容如下:06-2502:0

学习android,run as 之后出现The application *** has stopped unexpectedly.Please try again.logcat的error内容如下:06-25 02:06:02.944:E/AndroidRuntime(598):Uncaught handler:thread main exiting due to uncaught exception06-25 02:06:02.954:E/An
学习android,run as 之后出现The application *** has stopped unexpectedly.Please try again.
logcat的error内容如下:
06-25 02:06:02.944:E/AndroidRuntime(598):Uncaught handler:thread main exiting due to uncaught exception
06-25 02:06:02.954:E/AndroidRuntime(598):java.lang.RuntimeException:Unable to start activity ComponentInfo{mars.actvity01/mars.actvity01.Activity_01}:java.lang.ClassCastException:android.widget.TextView
06-25 02:06:02.954:E/AndroidRuntime(598):\x05at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2401)
06-25 02:06:02.954:E/AndroidRuntime(598):\x05at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2417)
06-25 02:06:02.954:E/AndroidRuntime(598):\x05at android.app.ActivityThread.access$2100(ActivityThread.java:116)
06-25 02:06:02.954:E/AndroidRuntime(598):\x05at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
06-25 02:06:02.954:E/AndroidRuntime(598):\x05at android.os.Handler.dispatchMessage(Handler.java:99)
06-25 02:06:02.954:E/AndroidRuntime(598):\x05at android.os.Looper.loop(Looper.java:123)
06-25 02:06:02.954:E/AndroidRuntime(598):\x05at android.app.ActivityThread.main(ActivityThread.java:4203)
06-25 02:06:02.954:E/AndroidRuntime(598):\x05at java.lang.reflect.Method.invokeNative(Native Method)
06-25 02:06:02.954:E/AndroidRuntime(598):\x05at java.lang.reflect.Method.invoke(Method.java:521)
06-25 02:06:02.954:E/AndroidRuntime(598):\x05at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
06-25 02:06:02.954:E/AndroidRuntime(598):\x05at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
06-25 02:06:02.954:E/AndroidRuntime(598):\x05at dalvik.system.NativeStart.main(Native Method)
06-25 02:06:02.954:E/AndroidRuntime(598):Caused by:java.lang.ClassCastException:android.widget.TextView
06-25 02:06:02.954:E/AndroidRuntime(598):\x05at mars.actvity01.Activity_01.onCreate(Activity_01.java:16)
06-25 02:06:02.954:E/AndroidRuntime(598):\x05at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
06-25 02:06:02.954:E/AndroidRuntime(598):\x05at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2364)
06-25 02:06:02.954:E/AndroidRuntime(598):\x05...11 more
06-25 02:06:02.965:E/dalvikvm(598):Unable to open stack trace file '/data/anr/traces.txt':Permission denied
我自己知道答案了,晕.

学习android,run as 之后出现The application *** has stopped unexpectedly.Please try again.logcat的error内容如下:06-25 02:06:02.944:E/AndroidRuntime(598):Uncaught handler:thread main exiting due to uncaught exception06-25 02:06:02.954:E/An
06-25 02:06:02.954: E/AndroidRuntime(598): java.lang.RuntimeException: Unable to start activity ComponentInfo{mars.actvity01/mars.actvity01.Activity_01}: java.lang.ClassCastException: android.widget.TextView
看见了么,不能正常启动activity组件,里的TextView,看看是不是你的属性设置有问题,要是代码不多,就贴出来吧