不幸的是,myApplication已经停止了

时间:2015-11-26 15:59:39

标签: android android-studio

每次我运行我的应用程序时,它都会停止。

它说:Unfortunately, myApplication has stopped

我该如何解决? 我使用的是最新版本的Android Studio(1.5.x)

我将我的应用程序命名为DDDx,您可以在此屏幕截图中看到

enter image description here

这是我的日志(第1部分)

enter image description here

这是我的日志(第2部分)

enter image description here

1 个答案:

答案 0 :(得分:0)

问题是您使用的是ListActivity 因此,在“活动”布局中,您必须拥有单个 ListView,其强制 ID为@android:id/list

相关问题