我在使用Android Studio時很新穎,我試圖「構建」讓我出現上述錯誤的項目。錯誤:(54)解析XML時出錯:不匹配的標記
據我所知,該錯誤意味着我沒有關閉XML標記在我的.xml文件中,但我找不到哪個標記。我得出的結論是,也許錯誤是另一個導致「不匹配標籤」的錯誤。
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.alexa.andorfightapp.SelectEnemy">
<LinearLayout android:layout_width="match_parent" android:layout_height="match_parent"
tools:layout_editor_absoluteY="8dp"
tools:layout_editor_absoluteX="8dp">
<TableLayout
android:layout_width="368dp"
android:layout_height="495dp">
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent" >
<EditText
android:id="@+id/auswahlTextBox"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ems="10"
android:inputType="textPersonName"
android:text="@string/gegenerauswahl" />
</TableRow>
</TableLayout>
<TableLayout
android:layout_width="368dp"
android:layout_height="wrap_content"
tools:layout_editor_absoluteY="100px"
tools:layout_editor_absoluteX="8dp">
<TableRow
android:layout_width="0dp"
android:layout_height="wrap_content"
tools:layout_editor_absoluteY="0dp"
tools:layout_editor_absoluteX="8dp">
<ImageButton
android:id="@+id/goreBtn"
android:layout_height="220px"
android:layout_column="0"
android:src="@drawable/gore" />
<ImageButton android:layout_height="220px" android:layout_column="1" android:id="@+id/skralBtn" android:src="@drawable/skral"/>
<ImageButton android:layout_height="220px" android:layout_column="2" android:id="@+id/trollBtn" android:src="@drawable/troll"/>
</TableRow>
<TableRow
android:layout_width="368dp"
android:layout_height="wrap_content"
tools:layout_editor_absoluteY="0dp"
tools:layout_editor_absoluteX="8dp">
<ImageButton android:layout_height="150dp" android:id="@+id/dragonBtn" android:src="@drawable/dragon_middle"
android:layout_width="0dp"
tools:layout_editor_absoluteY="0dp"
tools:layout_editor_absoluteX="0dp" />
</TableRow>
<TableRow
android:layout_width="0dp"
android:layout_height="wrap_content"
tools:layout_editor_absoluteY="0dp"
tools:layout_editor_absoluteX="8dp">
<ImageButton android:layout_height="300px" android:id="@+id/specialBtn" android:src="@drawable/star_small" />
<TableRow/>
</TableLayout>
</LinearLayout>
</android.support.constraint.ConstraintLayout>
'android.support.constraint.'你需要指定一個類,點 – MatPag
'android.support.constraint.ConstraintLayout'替換'android.support.constraint.' – MatPag
這只是一個複製粘貼錯誤,但謝謝 – Hierarchy