每当我尝试运行我的应用程序时,都会抛出以下异常:
01-22 00:40:51.868:ERROR/AndroidRuntime(2219):java.lang.RuntimeException:无法启动活动ComponentInfo {[Redacted]}:java.lang.RuntimeException:您的内容必须具有List属性,其id属性为' android.R.id.list"
以下是有问题的ListView的标记:
<ListView
android:id="@+id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:dividerHeight="1px"></ListView>
Run Code Online (Sandbox Code Playgroud)
那么,既然id被明确定义为"list",那么这里给出了什么?在过去的几个小时里,我已经多次运行我的代码,试图找出原因,我很难过.谁能提供任何指针?