Android, "Error in XML file: Abort build."

I am coding an Android project and I get the error:

Error in an XML file: aborting build.


This is the XML referenced in the error:

<?xml version="1.0" encoding="utf-8"?>
   <string name="app_name">Sudoku</string>
   <string name="main_title">Android Sudoku</string>
   <string name="continue_label">Continue</string>
   <string name="new_game_label">New Game</string>
   <string name="about_label">About</string>
   <string name="exit_label">Exit</string>


What does this error mean and how do you know where the error is?


source to share

2 answers

Tried Gabriel to answer to no avail. I ended up saving the strings.xml file elsewhere, deleting it in the project, opening AndroidManifest.xml (that was the key) , restarting Eclipse and adding that the file worked like a charm.



This error occurs when trying to run the application with an open xml file.

Close all xml files, open the .java file and try to run the application again.

Don't forget to delete the ".out.xml" file.



All Articles