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

Error:

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

2、Some projects were hidden because they exist in the workspace directory

Description:

有时候eclipse或者myeclipse导入项目的时候会发生上面两个错误,IDE不允许我们导入。具体原因是在IDE的workspace中已经存在了相同名字的项目,所以不能导入。这时候需要修改项目名,可有的时候你会发现虽然修改了项目名,可仍然有错误,这是因为项目名未完全更改过来,有遗漏的地方,在项目的配置文件中还是使用原始的项目名。

Action:

两个地方均修改项目名:

1、选中项目 --- right click --- refactor --- rename

2、workspace中要修改名字的项目 --- 打开.project文件 --- 修改<name>projectName</name>

原文地址:https://www.cnblogs.com/orientsun/p/2614781.html