![](http://img.bbs.csdn.net/upload/201607/30/1469873415_177116.png)
如图所示,活动是自动生成的不是手写的,仍然这样
log里面内容挺多都是红色,如图
![](http://img.bbs.csdn.net/upload/201607/30/1469873574_254587.png)
![](http://img.bbs.csdn.net/upload/201607/30/1469873585_126492.png)
也就是下面这些
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