0
當我complie該文件我得到這些錯誤 錯誤:錯誤解析XML:沒有很好地形成(標記無效) R 1不能被解析爲一個可變誤差在XML文件
這是Android xml文件
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:background="@drawable/ic_launcher"
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world"
/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="this is main text"
android:gravity="center"
/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/title"
/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Tutorials"
android:textSize="25px"
android:textStyle="bold" />
/>
請看我的答案,如果這個答案幫助你,然後接受它。 –