1. 程式人生 > >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

.project don ref sources plugins The space 項目文件 右擊

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