您的位置:首页 > 移动开发

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

2010-09-12 14:48 573 查看
在用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重启试试。

呵呵,很诡异的错误。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐