Eclipse Some projects cannot be imported because they already exist in the workspace

Posted 星辰忧沙

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Eclipse Some projects cannot be imported because they already exist in the workspace相关的知识,希望对你有一定的参考价值。

Eclipse Some projects cannot be imported because they already exist in the workspace!

是指工作空间已存在该项目名的项目。

方法一:

    修改项目名:右击--- refactor --- rename 或 F2修改项目名:右击--- refactor --- rename 或 F2

方法二:

    找到该项目文件夹下的.project文件,将里面的<name>projectName</name>    projectName修改

方法三:

    找到该工作空间下\workspace\.metadata\.plugins\org.eclipse.core.resources\.projects 文件夹,删除同名文件夹。

删除项目时,勾选Delete project contents on disk(cannot be undone)

 

同时当你要导入相关项目而并非一个真正的项目(缺少.project 和.classpath文件)导入不成功时,可以从其他项目将project 和.classpath文件复制过来,修改.project项目名称,就可以导入了。

以上是关于Eclipse Some projects cannot be imported because they already exist in the workspace的主要内容,如果未能解决你的问题,请参考以下文章

Eclipse Some projects cannot be imported because they already exist in the workspace

Eclipse导入工程Some projects cannot be imported because they already exist in the workspace

Can you share some Scala List class examples?

Sometimes we can pretend we have never been to some places.

eclipse导入git项目出现There are no resources that can be added or removed from the server错误

Ruby 需要'some-gem' 在控制台中工作,而不是在 Eclipse 中?