我正在尝试导入我和我的同事一直在做的一个项目。在我选择“导入”,然后选择“导入现有项目”,然后单击存档文件,然后单击下一步,这个错误就出现了:
中已经存在某些项目,因此无法导入 工作空间
我正在尝试导入我和我的同事一直在做的一个项目。在我选择“导入”,然后选择“导入现有项目”,然后单击存档文件,然后单击下一步,这个错误就出现了:
中已经存在某些项目,因此无法导入 工作空间
当前回答
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.
如果项目已经从项目导航器中删除,那么右键单击项目导航器,并选择refresh以刷新工作空间。然后重新添加已删除的项目。
我有一个类似的问题,我有相同的存储库,我想导入两次。我通过右键单击> refactor > rename重新命名现有项目,然后再次导入它。
您的工作区中可能有一个同名的项目。尝试在删除同名的另一个工作区后刷新(file->refresh)您的工作区。 当您希望重新导入已删除的项目时,会出现典型的情况。
尝试重命名<name>标签的值。项目”文件。
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Rename this value</name>
<comment></comment>
<projects>
这肯定有用。这里只是重命名项目。