用eclipse 开发 android应用时出现个错误,“your project contains error(s),please fix them before running your application”

来源:互联网 发布:python如何安装pip教程 编辑:程序博客网 时间:2024/06/05 23:43

在用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重启试试。

呵呵,很诡异的错误。

 

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/echozhy/archive/2010/09/12/5879116.aspx

原创粉丝点击