遇到问题:
第一次从外部文件导入HelloWorld工程到workspace目录中,成功。
删除后,再次从外部导入workspace目录提示 Some projects cannot be imported because they already exist in the workspace
eclipse中删除HelloWorld工程时没有勾选Delete project contents on disk(cannot be undone)则不会删除文件。
这时再次添加HelloWorld工程时提示
Some projects cannot be imported because they already exist in the workspace
原因:workspace中有HelloWorld工程文件。
这时可以将copy projects into workspace复选框不打勾,点击右方的refresh。
可以添加成功,当然这个工程没有copy到workspace目录中。
也可以这样改正:将第一次导入并copy到workspace中的HelloWorld工程,用这种方法导入,再次删除时勾选上Delete project contents on disk(cannot be undone),这样将workspace中的HelloWorld工程彻底删除,之后导入外部HelloWorld工程时可以成功。
android :
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
有时候eclipse或者myeclipse导入项目的时候会发生上面两个错误,IDE不允许我们导入。具体原因是在IDE的workspace中已经存在了相同名字的项目,所以不能导入。
解决办法则是修改项目名:
1、right
click --- refactor --- rename
2、workspace中要修改名字的项目 --- 打开.project文件 ---
修改<name>projectName</name>
Some projects cannot be imported because they already exist in the workspace,布布扣,bubuko.com
Some projects cannot be imported because they already exist in the workspace
原文地址:http://www.cnblogs.com/liukedong/p/3864765.html