0

I'm trying to run My first app on the emulator, as mention here.

I create new AVD: Android 4.4W, API Level 20.

When I run it, it gives the following error in the emulator:

Unfortunately, My First App has stopped.

And in the eclipse, I get the following error:

0 E/AndroidRuntime(1662): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.myfirstapp/com.example.myfirstapp.MainActivity}: android.util.AndroidRuntimeException: You cannot combine swipe dismissal and the action bar.

How can I solve it?

Or Smith
  • 3,556
  • 13
  • 42
  • 69
  • possible duplicate http://stackoverflow.com/questions/24587218/android-util-androidruntimeexception-you-cannot-combine-swipe-dismissal-and-the – Olayinka Aug 09 '14 at 09:32
  • What often helps is Googling the error description, in your case: `You cannot combine swipe dismissal and the action bar.`. – FD_ Aug 09 '14 at 09:34
  • http://stackoverflow.com/questions/24501374/targetsdkversion-setting – Pragnesh Ghoda シ Aug 09 '14 at 09:36

1 Answers1

0

Your Solution Lies within Creating AVD..

Note :

Do not use API Level of 20 and Platform 4.4W, as Android Virtual Device. 
With Level 19 and Platform 4.2.2 set on ADV everything runs as it should.
Pragnesh Ghoda シ
  • 8,318
  • 3
  • 25
  • 40