我正在尝试导入我和我的同事一直在做的一个项目。在我选择“导入”,然后选择“导入现有项目”,然后单击存档文件,然后单击下一步,这个错误就出现了:
中已经存在某些项目,因此无法导入 工作空间
我正在尝试导入我和我的同事一直在做的一个项目。在我选择“导入”,然后选择“导入现有项目”,然后单击存档文件,然后单击下一步,这个错误就出现了:
中已经存在某些项目,因此无法导入 工作空间
当前回答
出现此问题是因为您在其他项目文件夹中有相同的项目。因为在eclipse中我们有很多项目文件夹,所以如果你在一个文件夹中有一个项目,你想把它导入到另一个项目文件夹中,那么这个问题就会发生。 所以首先从其他文件夹中删除项目,然后导入到当前的项目文件夹中。
其他回答
至少在Eclipse Juno上,您可以切换到高级。然后选择[groupid]。[artifactid]从名称模板下拉菜单。这将使您的项目具有唯一的名称。如果您保留一个给定工件的多个版本,您可以选择[groupid].[artifactid]。【版本】)。请确保单击Refresh按钮,以便更改可见。清洗,冲洗,重复。
转到项目中的。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中我们有很多项目文件夹,所以如果你在一个文件夹中有一个项目,你想把它导入到另一个项目文件夹中,那么这个问题就会发生。 所以首先从其他文件夹中删除项目,然后导入到当前的项目文件夹中。
这对我很管用。
文件>新建> Android项目>从现有资源创建项目
Location =要导入的项目的位置。
您将得到一条警告:“此目录中已存在一个Eclipse项目。 考虑使用File > Import > Existing Project代替。”但是你可以点击“Next”,项目就会被导入。