在用eclipse写Android程序的时候,一不小心运行了一下main.xml布局文件,结果自动生成了一个main.out.xml文件,删掉之后项目就出错了,还找不到是哪里出错。
一运行就是“your project contains error(s),please fix them before running your application.”
找了找帖子,发现group中有一段话:不妨试试。
Somethings I'll have an ?.xml file selected where I compile a project,only to have a ?.out.xml generated.Deleting the file doesn't clear the error,and Eclipse won't compile the project. I just reports that your project contains errors. The solution is to go to Project/Clean. This will clear the error in the project and allow it to compile. 先Project/Clean,再Build。
eoeAndroid中也有人说,“我遇到这个问题的时候,先把项目删除,在加载进来就好了,哈哈!”
或者 把eclipse重启试试。
呵呵,很诡异的错误。