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

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

 

呵呵,很诡异的错误。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 6
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值