问题
Sometimes Android SDK compiling Project will generate an empty layout XML named main.out.xml, which makes compile failed.
The file has to be deleted before compiling again. Why will it appear? and how to avoid it?
My IDE is Eclipse with ADT.
回答1:
It was reported as a bug. There might an issue with xml plug-ins or something. I've always deleted the xxxx.out.xml file. Take a look at SO threads:
- Eclipse - Disabling compiling of XML files while in Java perspective
- android sdk main.out.xml parsing error?
回答2:
Simply open any of the .java file in the src directory. Simply click on it an hit run
来源:https://stackoverflow.com/questions/8251658/android-sdk-main-out-xml