SyntaxHighlighter

2012/07/13

Error in an XML file: aborting build.

After updating Eclipse to Eclipse4.2 Juno, I encountered a new error in the console like below when I built Android packages.
Error in an XML file: aborting build.

The error was caused by a newly generated xml file in the res/layout folder like main.out.xml. To remove the file is an option to recover the error. But it is not convenient to do it every time.

Who creates the file?

The perpetrator is not Eclipse Juno but an XML plugin of "Eclipse XSL Developer Tools. So if you
  1. Delete main.out.xml
  2. Uninstall "Eclipse XSL Developer Tools" plugin
  3. Restart Eclipse.
then, you'll never see the error.

0 件のコメント: