我正在尝试导入我和我的同事一直在做的一个项目。在我选择“导入”,然后选择“导入现有项目”,然后单击存档文件,然后单击下一步,这个错误就出现了:
中已经存在某些项目,因此无法导入 工作空间
我正在尝试导入我和我的同事一直在做的一个项目。在我选择“导入”,然后选择“导入现有项目”,然后单击存档文件,然后单击下一步,这个错误就出现了:
中已经存在某些项目,因此无法导入 工作空间
当前回答
你有一个名为“”的神秘学目录。工作空间目录下的元数据。关闭Eclipse,删除”。元数据”并打开Eclipse。当eclipse问你关于工作空间的问题时,请确保“。元数据”不在工作空间目录中,单击“确定”按钮选择默认工作空间。
其他回答
至少在Eclipse Juno上,您可以切换到高级。然后选择[groupid]。[artifactid]从名称模板下拉菜单。这将使您的项目具有唯一的名称。如果您保留一个给定工件的多个版本,您可以选择[groupid].[artifactid]。【版本】)。请确保单击Refresh按钮,以便更改可见。清洗,冲洗,重复。
在您的工作空间文件夹中查看一下,您可能有一个旧项目,其名称与您正在导入的项目相同(即使它没有在eclipse中显示)。
当您在Eclipse上删除一个项目时,如果您不勾选对话框上的复选框,它就会将其从视图中删除,而不会删除工作区目录上的文件夹。
取消选中“将项目复制到工作区”复选框,然后单击“刷新”按钮,您将能够导入项目
没有什么解决不了我的问题。这就是我解决的方法。
关闭IDE 从工作区中删除同名项目 启动IDE 清理所有项目(不确定这是否有帮助) >导入>现有项目 点击刷新按钮 导入项目
做. .
我刚接触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.