Eclipse 说我的 Android 项目包含错误,但没有任何错误 [英] Eclipse says my Android project(s) contain(s) errors, but there aren't any

查看:29
本文介绍了Eclipse 说我的 Android 项目包含错误,但没有任何错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从昨晚开始,Eclipse 就没有让我运行我的任何项目并给我错误消息您的项目包含错误,请在运行之前修复它".

Since last night, Eclipse hasn't been letting me run any of my projects and gives me the error "Your project contains error(s), please fix it before running it".

  • 无论我使用哪个项目,都会发生这种情况.
  • 任何项目都没有代码错误
  • 没有丢失文件(R.java 等)或文件夹(src、res 等)
  • 控制台(即使是详细的)或错误日志屏幕中没有错误
  • 我已经清理了所有项目以及每个单独的项目多次
  • 我已经重新启动了 ADB、Eclipse 和我的计算机

我不知道接下来要做什么,所以希望它可以修复.注意:我正在使用 Git,这是在切换到我的主分支以将新更新导出到我的一个应用程序之后发生的.

I have no idea what to do next, so hopefully its fixable. NOTE: I am using Git, and this occurred after switching to my master branch to export a new update to one of my apps.

先谢谢你!(:

编辑 1:在发布此内容之前,我还尝试删除并重新导入项目.

Edit 1: I have also tried deleting and re-importing the projects before I posted this.

推荐答案

点击 Window ->显示视图 ->问题,应该显示 Eclipse 认为您的项目有什么问题.有时您可以简单地从该视图中删除问题,Eclipse 相信您一切正常(是的,很奇怪,我知道).

Click Window -> Show View -> Problems, that should show what exactly Eclipse thinks is wrong with your project. Sometimes you can simply delete the problem from that view, and Eclipse believes you everything is fine (yep, weird, I know).

此外,在您使用外部源代码控制工具(未通过插件集成到 Eclipse 中的工具)切换分支后,Eclipse 有时不会获取所有更改,您需要手动刷新整个项目文件树.

Also, after you switch branches using an external source control tool (one not integrated into Eclipse through a plugin), Eclipse sometimes won't pick up all changes, you'd need to manually refresh the whole project file tree.

如果没有其他帮助,请尝试设置一个新的 Eclipse 工作区并在那里导入您的项目.

If nothing else helps, try setting up a new Eclipse workspace and importing your project there.

这篇关于Eclipse 说我的 Android 项目包含错误,但没有任何错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆