android.util.AndroidRuntimeException: You cannot combine swipe dismissal and the action bar
Solution 1:
4.4W is Android Wear SDK. (dont target to android wear device)
try changing target sdk version to 19
check here targetSdkVersion setting
Do not use API Level of 20 and Platform 4.4W (which is Android Wear SDK) as Android Virtual Device.
Use API level 19 and platform 4.4.2 everything works fine.
Solution 2:
I had the same issue. But sdk version was not the cause for this exception.
In the AndroidManifest.xml file you have the theme has ActionBar in it.
android:theme="@style/AppTheme" >
Change the above line to
android:theme="@android:style/Theme.DeviceDefault" >
That will fix the exception.
Solution 3:
4.4W is Android Wear SDK.
This error is because the device you are targeting is Android Wear which has a different design pattern.
If you are developing a mobile application, change your AVD and target any API below 20 or choose API 20 (L preview).
Or if you are really targeting for Android Wear, change your app design.
Solution 4:
Am using Android Studio beta 0.8.6 with java 7. I had the same issue. And fixed it this way.
In the AndroidManifest.xml file you have the theme has ActionBar in it.
android:theme="@style/AppTheme" >
Change the above line to
android:theme="@android:style/Theme.DeviceDefault" >
That will fix the exception. As mentioned by Gangadhar in prev answer ,sdk version was not the cause for this exception.
And tested it with helloWorld app.