How To: Eclipse compile error with Android ADT
Posted
by Sahat
on Stack Overflow
See other posts from Stack Overflow
or by Sahat
Published on 2010-05-28T10:59:26Z
Indexed on
2010/05/28
11:02 UTC
Read the original article
Hit count: 437
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
© Stack Overflow or respective owner