0

i am trying to display Listview control in android app and here is my xml file:

what i am doing wrong?

<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="countries">
    <item name="usa">Unites States</item>   
    <item name="kwt">Kuwait</item>
    <item name="sa">Sudia Arabia</item>
    <item name="uae">United Arab Emirates</item>
    <item name="afghan">Afghanstan</item>
  </string-array>
</resources>

Error:

[2012-01-08 19:58:24 - ListControls] Error in an XML file: aborting build.

Nick Kahn
  • 19,652
  • 91
  • 275
  • 406

3 Answers3

1

There are a few other questions here on Stackoverflow that may address your problem:

Error starting an Android program

It's worth searching Stackoverflow or the web for error message strings etc. before posting a new question (if you didn't do this).

Community
  • 1
  • 1
occulus
  • 16,959
  • 6
  • 53
  • 76
0

Try closing Eclipse, then run it again.

josephus
  • 8,284
  • 1
  • 37
  • 57
0

i copy your code to eclipse, it work right.

so, may be the eclipse build has some problem, suggestion clean your project and rebuild.

[2012-01-08 19:58:24 - ListControls] Error in an XML file: aborting build.

and maybe your error is not the xml file error.

idiottiger
  • 5,147
  • 2
  • 25
  • 21