我正在尝试导入我和我的同事一直在做的一个项目。在我选择“导入”,然后选择“导入现有项目”,然后单击存档文件,然后单击下一步,这个错误就出现了:
中已经存在某些项目,因此无法导入 工作空间
我正在尝试导入我和我的同事一直在做的一个项目。在我选择“导入”,然后选择“导入现有项目”,然后单击存档文件,然后单击下一步,这个错误就出现了:
中已经存在某些项目,因此无法导入 工作空间
当前回答
我的问题有点不同。
例如,项目名称(我看到的)是FooProject,在导入的项目中,我正在寻找FooProject,但我不能。但是,Eclipse不允许我导入该项目,因为他声称已经导入了该项目。然后,我已经看了项目的。project文件,我已经看到项目的实际名称不是我所看到的(FooProject)。
结论; 项目的名称(您在Eclipse中看到的)可能与项目的实际名称(maven看到的)不同。因为这个原因。请通过检查项目的.project文件确保它们是相同的名称。
其他回答
经过两天的努力,我找到了这个。 这值得一试。 常见问题解答
我刚接触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.
我刚找到的另一条路!
移动项目到其他文件夹,然后导入,如果需要,复制到工作区
你有一个名为“”的神秘学目录。工作空间目录下的元数据。关闭Eclipse,删除”。元数据”并打开Eclipse。当eclipse问你关于工作空间的问题时,请确保“。元数据”不在工作空间目录中,单击“确定”按钮选择默认工作空间。
在您的工作空间文件夹中查看一下,您可能有一个旧项目,其名称与您正在导入的项目相同(即使它没有在eclipse中显示)。
当您在Eclipse上删除一个项目时,如果您不勾选对话框上的复选框,它就会将其从视图中删除,而不会删除工作区目录上的文件夹。