main.out.xml: Error parsing XML: no element found
April 11, 2010 | In Android, Development | No CommentsWhen you build and run your Android application in Eclipse you can get the following error message:
...res\layout\main.out.xml:1: error: Error parsing XML: no element found
This occurs when you try and run the application from the main.xml layout file. The application cannot run from here and needs to be run from the java file.
The answer is to ensure that a java file is selected when you hit run, as you should run the java not the xml file. The easiest way to ensure you don’t do this is to use the Run History options in Eclipse.