Android /试图运行我的第一个应用程序 - 致命错误

时间:2014-08-09 09:29:13

标签: android

我正在尝试在模拟器上运行我的第一个应用,如提及here

我创建了新的AVD:Android 4.4W, API Level 20.

当我运行它时,它在模拟器中给出以下错误:

Unfortunately, My First App has stopped.

在日食中,我收到以下错误:

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.

我该如何解决?

1 个答案:

答案 0 :(得分:0)

您的解决方案在于创建AVD ..

注意:

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.