2012-02-11 33 views
1

次のようにXMLファイルを作成しようとしています。しかしI'amはcosoleでXMLファイルの生成中にAndroidエラーが発生しました

Unparsed aapt error(s) check the Console for output 

以下のエラーを取得し、I'amは

<?xml version="1.0" encoding="utf-8"?> 

<TableLayout 
xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_height="fill_parent" 
android:layout_width="fill_parent" 
android:background="#000044"> 

<TableRow> 

<TextView 
android:text="Col 1" 
android:width ="80px" 
android:layout_height="wrap_content" 
android:layout_width="wrap_content" 
/> 

<TextView 
android:text="Col 2" 
android:width ="80px" 
/> 

<TextView 
android:text="Col 3" 
android:width ="80px" 
/> 

<TextView 
android:text="Col 4" 
android:width ="80px" 
/> 

<TextView 
android:text="Col 5" 
android:width ="120px" 
/> 

</TableRow> 

<TableRow> 
<TextView /> 

</TableRow> 


</TableLayout> 

を次のように私のXMLファイルがある

[2012-02-11 20:39:08 - TEST] res\layout\final.xml:0: error: invalid symbol: 'final' 

以下のエラーを取得

を助けてください

ありがとう

KR

答えて

3

finalはjavaの予約語です。だからではなく、最終、詳細はlayout_final

のようなものに変更し、this

+0

ナイスキャッチをお読みください。私は今5分間そのコードを見つめていて、それを考えなかった。 +1 – Squonk

+0

giggles giggles:p – waqaslam

+0

ありがとうWaqas。これはエラー – BookFans

関連する問題