Eclipse的说,我的Andr​​oid项目(S)含(S)的错误,但目前还没有任何我的、还没、的说、有任何

2023-09-06 03:31:49 作者:命中不缺狗°

从昨晚开始,Eclipse已经没有让我跑我的任何项目,并给我的错误您的项目中包含错误(S),请在运行它之前解决这个问题。

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".

在这种情况无论我使用的项目。 有没有code错误在任何项目 有没有丢失的文件(R.java等)或文件夹(SRC,水库等) 有在控制台中没有错误(甚至详细)或错误日志屏幕 我已经清理所有的项目,并且每个项目多次 在我重新启动亚行,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.

推荐答案

点击窗口 - >显示视图 - >问题,这应该表明究竟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.