How To: Eclipse compile error with Android ADT
- by Sahat
This error happens when you try to build & run .xml files (i.e. main.xml or strings.xml) files instead of .java
Problem:
[2010-05-28 06:42:42] Error in an XML file: aborting build.
[2010-05-28 06:42:42] res/layout/main.xml:0: error: Resource entry main is already defined.
[2010-05-28 06:42:42] res/layout/main.out.xml:0: Originally defined here.
[2010-05-28 06:42:42] /Users/sakhat/Code/Sudoku/res/layout/main.out.xml:1: error: Error parsing XML: no element found
Solution:
Delete the main.out.xml, if you still can't run, then follow this:
Eclipse - Project - Clean... - Choose your project - OK