我是 Android 开发的新手,正在尝试创建一个示例应用程序。谁能告诉我以下布局(activity_sample.xml)有什么问题?-
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="@string/app_name"
tools:context=".SampleActivity" />
</LinearLayout>
在构建时,我收到以下错误 -
error: Error parsing XML: unbound prefix activity_sample.xml /Sample/res/layout line 4 Android AAPT Problem