我正在尝试导入我和我的同事一直在做的一个项目。在我选择“导入”,然后选择“导入现有项目”,然后单击存档文件,然后单击下一步,这个错误就出现了:
中已经存在某些项目,因此无法导入 工作空间
我正在尝试导入我和我的同事一直在做的一个项目。在我选择“导入”,然后选择“导入现有项目”,然后单击存档文件,然后单击下一步,这个错误就出现了:
中已经存在某些项目,因此无法导入 工作空间
当前回答
我有一个稍微不同的情况,我的eclipse停止响应,我不得不杀死会话。重启Juno后,我正在从事的特定项目消失了,尽管.project文件存在。如果尝试创建一个新项目,则尝试导入回Eclipse将会得到相同的“某些项目无法导入..”或“具有此名称的项目已经存在”。
最后,由于我使用的是工作集,我设法找到了这个文件。metadata.plugins\org.eclipse.ui.workbench\workingsets.xml。手动添加丢失的条目并重新启动eclipse,瞧,它回来了。
其他回答
你有一个名为“”的神秘学目录。工作空间目录下的元数据。关闭Eclipse,删除”。元数据”并打开Eclipse。当eclipse问你关于工作空间的问题时,请确保“。元数据”不在工作空间目录中,单击“确定”按钮选择默认工作空间。
我刚接触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中通过“(右击)—>close project”.....关闭了项目因此,即使您从工作空间文件夹....中删除该项目它在eclipse IDE中作为关闭的项目.....留在那里你应该从Eclipse IDE中删除它!!
取消选中“将项目复制到工作区”复选框,然后单击“刷新”按钮,您将能够导入项目
我的问题有点不同。
例如,项目名称(我看到的)是FooProject,在导入的项目中,我正在寻找FooProject,但我不能。但是,Eclipse不允许我导入该项目,因为他声称已经导入了该项目。然后,我已经看了项目的。project文件,我已经看到项目的实际名称不是我所看到的(FooProject)。
结论; 项目的名称(您在Eclipse中看到的)可能与项目的实际名称(maven看到的)不同。因为这个原因。请通过检查项目的.project文件确保它们是相同的名称。