我正在尝试导入我和我的同事一直在做的一个项目。在我选择“导入”,然后选择“导入现有项目”,然后单击存档文件,然后单击下一步,这个错误就出现了:

中已经存在某些项目,因此无法导入 工作空间


当前回答

检查您是否已将Eclipse配置为显示所有工作集。我曾经遇到过完全相同的问题,结果是我不小心将项目导入了Other Projects工作集。而且我的Eclipse配置没有在包资源管理器中显示该工作集,这使我相信项目还没有导入。

更新@Mawg:

首先,单击选择工作集…

然后,选择No Working Sets:

这将有效地禁用工作集并显示所有项目。

其他回答

我刚接触Eclipse和Android开发,这让我困扰了很长一段时间。以下是我做错的几件事,也许将来会对别人有所帮助:

I was downloading code examples and assuming project name would be the same as the folder name and was looking for that folder name in the project explorer, not finding it, re-importing it, then getting the error message it already existed in the workspace. Yeah. Not proud of that. Didn't click on 'Copy projects into Workspace' and then searched in vain through the workspace when it didn't appear in the project explorer BECAUSE The 'Add project to working sets' option in the Import Projects tab isn't working as far as I can tell, so was not appearing in the project explorer for the active working set (refresh made no difference). Adding project to the working set had to be done after successfully importing it.

最简单的方法:右键单击项目(文件夹读“MainActivity”)去重构->重命名,你会得到一个文本字段,允许你重命名你的项目。

如果您收到一个警告,说您的项目与文件系统不同步,请按F5(刷新)并重试。

这件事发生在我身上

我从eclipse项目资源管理器中删除了项目,并且没有检查 从磁盘中删除内容。

下次当我试图在工作区中导入相同的项目时,又遇到了同样的问题。

为了解决这个问题,我只是做了每个孩子都会做的参考工作:)

所以我是怎么解决的:

从eclipse工作区剪切Ctrl + x myProject文件夹到其他位置,即桌面 右键单击导航器(你可以从窗口>显示视图>导航器)和刷新(它会提示以下对话框) 只需单击Yes按钮并将项目文件夹移回eclipse工作区目录 再导入! 现在是Rock 'n' Role

此警告意味着您刚刚从导航器中删除了项目,但该项目仍存在于工作集中。否则,您的工作集有同名的项目,请转到工作空间目录,删除同名的项目,然后重新导入。

您的工作区中可能有一个同名的项目。尝试在删除同名的另一个工作区后刷新(file->refresh)您的工作区。 当您希望重新导入已删除的项目时,会出现典型的情况。