Android 虚拟机运行简单的 hello world 显示“ Unfortunately,活动名has stoped ”
来源:互联网 发布:怎么恢复电脑数据 编辑:程序博客网 时间:2024/06/13 06:23
如图所示,活动是自动生成的不是手写的,仍然这样
log里面内容挺多都是红色,如图
也就是下面这些
07-30 10:04:28.000: W/dalvikvm(888): threadid=1: thread exiting with uncaught exception (group=0xb4a41d70)
07-30 10:04:28.010: E/AndroidRuntime(888): FATAL EXCEPTION: main
07-30 10:04:28.010: E/AndroidRuntime(888): Process: com.test.helloworld, PID: 888
07-30 10:04:28.010: E/AndroidRuntime(888): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.test.helloworld/com.test.helloworld.HelloWorldActivity}: android.util.AndroidRuntimeException: You cannot combine swipe dismissal and the action bar.
07-30 10:04:28.010: E/AndroidRuntime(888): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2197)
07-30 10:04:28.010: E/AndroidRuntime(888): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2258)
07-30 10:04:28.010: E/AndroidRuntime(888): at android.app.ActivityThread.access$800(ActivityThread.java:138)
07-30 10:04:28.010: E/AndroidRuntime(888): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1209)
07-30 10:04:28.010: E/AndroidRuntime(888): at android.os.Handler.dispatchMessage(Handler.java:102)
07-30 10:04:28.010: E/AndroidRuntime(888): at android.os.Looper.loop(Looper.java:136)
07-30 10:04:28.010: E/AndroidRuntime(888): at android.app.ActivityThread.main(ActivityThread.java:5026)
07-30 10:04:28.010: E/AndroidRuntime(888): at java.lang.reflect.Method.invokeNative(Native Method)
07-30 10:04:28.010: E/AndroidRuntime(888): at java.lang.reflect.Method.invoke(Method.java:515)
07-30 10:04:28.010: E/AndroidRuntime(888): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777)
07-30 10:04:28.010: E/AndroidRuntime(888): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
07-30 10:04:28.010: E/AndroidRuntime(888): at dalvik.system.NativeStart.main(Native Method)
07-30 10:04:28.010: E/AndroidRuntime(888): Caused by: android.util.AndroidRuntimeException: You cannot combine swipe dismissal and the action bar.
07-30 10:04:28.010: E/AndroidRuntime(888): at com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:277)
07-30 10:04:28.010: E/AndroidRuntime(888): at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:2889)
07-30 10:04:28.010: E/AndroidRuntime(888): at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:3154)
07-30 10:04:28.010: E/AndroidRuntime(888): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:305)
07-30 10:04:28.010: E/AndroidRuntime(888): at android.app.Activity.setContentView(Activity.java:1930)
07-30 10:04:28.010: E/AndroidRuntime(888): at com.test.helloworld.HelloWorldActivity.onCreate(HelloWorldActivity.java:15)
07-30 10:04:28.010: E/AndroidRuntime(888): at android.app.Activity.performCreate(Activity.java:5242)
07-30 10:04:28.010: E/AndroidRuntime(888): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
07-30 10:04:28.010: E/AndroidRuntime(888): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2161)
07-30 10:04:28.010: E/AndroidRuntime(888): ... 11 more
07-30 10:09:28.110: I/Process(888): Sending signal. PID: 888 SIG: 9
0 0
- Android 虚拟机运行简单的 hello world 显示“ Unfortunately,活动名has stoped ”
- Android 虚拟机运行简单的 hello world 显示“ Unfortunately,活动名has stoped ”
- Android是虚拟机运行后总是显示:Unfortunately XXX has stopped.
- android程序运行时总出现“Unfortunately,程序名 has stopped” 的问题
- Android startActivityForResult unfortunately 程序名 has stopped的问题
- Unfortunately 程序名 has stopped的解决方法
- 在调用android虚拟机的相机时,出现Unfortunately,camera has stopped对话框
- Android新手关于unfortunaly,xxx has stoped!的解决问题
- Unfortunately 程序名 has stopped的解决方法(二)
- android:cocos2d-x模拟器运行出现 unfortunately,xxx has stopped!
- Android 通讯录已停止运行/Unfortunately, Contacts has stopped
- android运行activity时报 Unfortunately,TestLayout has stopped 问题
- 关于android unfortunately has stopped
- 简单的hello world
- 简单的‘Hello World!’
- 模拟器运行时,xxx has stopped unfortunately
- CLion为什么最简单的hello,world都运行不了
- 侧滑栏按钮点击显示unfortunately has stop
- android5.1手机自动化拨号APK开发
- expandablelistview 动态添加不同的子item。
- ListView中的问题,有点意思
- Calendar怎么显示数据库中选定的日期
- cordova for android hybrid 程序专题页面宽度大小显示异常问题
- Android 虚拟机运行简单的 hello world 显示“ Unfortunately,活动名has stoped ”
- android 4.0以上系统如何实现自动接听电话
- android studio使用PagerAdapter时提示错误
- android activity刷新
- Asp 多表搜索的问题
- 【关于推送通知】请问在APP主进程未启动时,可以用推送通知来启动APP么?
- 自定义导航栏引用到某一界面时怎么触发自定义导航栏中的事件
- 关于jar包源码的问题
- asp 调java webservice问题