1

I'am trying to create an XML file as follows. But I'am getting the below error

Unparsed aapt error(s) check the Console for output

In the cosole, I'am getting the below error

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

My XML file is as follows

<?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>

Please help

Thanks

KR

Squonk
  • 48,735
  • 19
  • 103
  • 135
BookFans
  • 13
  • 2

1 Answers1

3

final is java's reserved keyword. So instead final, change it to something like layout_final

for more info, read this

Community
  • 1
  • 1
waqaslam
  • 67,549
  • 16
  • 165
  • 178