2016-06-19 6 views
1

Androidスタジオで初めてコーディングしていて、プログラミングが初めてです。私はあなたがこのタグの末尾に/を逃しているのLinearLayoutタグにエラー:(30)XMLを解析中にエラーが発生しました:不一致のタグ

enter image description here

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:orientation="vertical" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content"> 

    <TextView 
     android:text="Quantity" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:layout_margin="16dp" 
     android:textSize="24sp" /> 

    <TextView 
     android:text="0" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:layout_margin="16dp" 
     android:textSize="24sp" 
     android:id="@+id/numbers"> 

    <Button 

     android:id="@+id/next_button" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:layout_margin="16dp" 
     android:text="Order" /> 

</LinearLayout> 

答えて

2
<TextView 
      android:text="0" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:layout_margin="16dp" 
      android:textSize="24sp" 
      android:id="@+id/numbers"> 

を閉じるには、エラーを取得しています。 android:id="@+id/numbers"/>

</TextView>でタグを正しく閉じるかいずれかを指定します。

+0

感謝の気持ちの良い問題を解決しました:) –

+0

@ZeeShanAli問題はありません。質問を閉じるには、答えを受け入れることを検討してください。ありがとう:) – Vucko

関連する問題