Skip to content Skip to sidebar Skip to footer

Prevent Eclipse From Building .xml Files

I recently had a complete new install of my (archlinux) System. For that reason I installed the latest Eclipse (JUNO 4.2.1 and I regret it) along with the latest ADT Plugin(SDK rev

Solution 1:

This occurs when you install some of the xml-plugins in eclipse. The xml plugins are not needed to develop android apps since the ADT comes with its own set of tools to work with xml files (i.e. Layout editor, etc). If you do not need those xml plugins for other projects you can remove them. Eclipse recognizes the xml files as part of your android project and directly starts the android project (instead of the xml-parser which checks the xml file).

Delete xml.out file then close your xml file or just switch to java file and then run the project configuration you want to run.

OR

Just try doing this (which is better option and worked for me)-

Windows > Preferences > Launching > Launch Operation > Select Always launch previously launched application

Solution 2:

I have found this issue inside Androids issue List. The best option I think was to set

Window->Preferences->Run/Debug->LaunchConfiguration->CHECK 'Filter checked launch configurations'->CHECK 'XSL'

This way I do not have to unistall that XML plugin, while able to build another Project inside my workspace without choosing it explicitly. Unfortunately that doesn't worked on my machine, while others report it working. So I had to remove all files ( in fact I just moved files into a backup dir) in $ECLIPSE_HOME/plugins/org.eclipse.wst.xsl.*. After a relaunch of Eclipse it never attempts to run a XML file again.

Post a Comment for "Prevent Eclipse From Building .xml Files"