4
回答
求解答:android虚拟机运行时出故障
滴滴云服务器,限时包月0.9元,为开发者而生>>>   
Sorry!The application Menu02(process com.amaker.test)has stopped unexpectedly.Please try again.

  Force close

logcat显示 :
04-19 07:55:51.602: D/AndroidRuntime(757): Shutting down VM
04-19 07:55:51.602: W/dalvikvm(757): threadid=1: thread exiting with uncaught exception (group=0x40015560)
04-19 07:55:51.631: E/AndroidRuntime(757): FATAL EXCEPTION: main
04-19 07:55:51.631: E/AndroidRuntime(757): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.amaker.test/com.amaker.test.MainActivity05}: java.lang.ClassCastException: android.widget.TextView
04-19 07:55:51.631: E/AndroidRuntime(757): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
04-19 07:55:51.631: E/AndroidRuntime(757): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
04-19 07:55:51.631: E/AndroidRuntime(757): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
04-19 07:55:51.631: E/AndroidRuntime(757): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
04-19 07:55:51.631: E/AndroidRuntime(757): at android.os.Handler.dispatchMessage(Handler.java:99)
04-19 07:55:51.631: E/AndroidRuntime(757): at android.os.Looper.loop(Looper.java:123)
04-19 07:55:51.631: E/AndroidRuntime(757): at android.app.ActivityThread.main(ActivityThread.java:3683)
04-19 07:55:51.631: E/AndroidRuntime(757): at java.lang.reflect.Method.invokeNative(Native Method)
04-19 07:55:51.631: E/AndroidRuntime(757): at java.lang.reflect.Method.invoke(Method.java:507)
04-19 07:55:51.631: E/AndroidRuntime(757): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
04-19 07:55:51.631: E/AndroidRuntime(757): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
04-19 07:55:51.631: E/AndroidRuntime(757): at dalvik.system.NativeStart.main(Native Method)
04-19 07:55:51.631: E/AndroidRuntime(757): Caused by: java.lang.ClassCastException: android.widget.TextView
04-19 07:55:51.631: E/AndroidRuntime(757): at com.amaker.test.MainActivity05.onCreate(MainActivity05.java:18)
04-19 07:55:51.631: E/AndroidRuntime(757): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
04-19 07:55:51.631: E/AndroidRuntime(757): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
04-19 07:55:51.631: E/AndroidRuntime(757): ... 11 more

举报
happy_8
发帖于6年前 4回/4K+阅
顶部