【坑】Some projects cannot be imported because they already exist in the workspace
来源:互联网 发布:php与java对比 编辑:程序博客网 时间:2024/06/08 12:11
MyEclipse无法导入Java项目时常遇到的两种情况:
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
原因:workspace中已经存在了相同名字的项目,所以不能导入。
解决:
1、修改项目名:右击— refactor — rename 或 F2
2、打开项目中.project文件 — 修改projectName
3、工作空间并不存在同名项目,定是还有地方记录了之前的工程信息,可能是。。。找到:\xxxxxxxx\workspace.metadata.plugins\org.eclipse.core.resources.projects 文件夹,删除同名文件夹。
还有的时候会出现
这个时候就是因为该工程文件下没有.project .classpath文件。
方法1:
最直接的操作,可以把其它项目的.project, .classpath文件拷贝过来,修改相应的地方则可。
1).project文件只需要修改AboxTVExchange这个项目名称则可
2) .classpath文件通常不用改,内容如下:
<?xml version=”1.0″ encoding=”UTF-8″?><classpath><classpathentry kind=”src” path=”src”/><classpathentry kind=”src” path=”gen”/><classpathentry kind=”con” path=”com.android.ide.eclipse.adt.ANDROID_FRAMEWORK”/><classpathentry kind=”output” path=”bin”/></classpath>
kind= “… “是指这个目录在project中的类型。kind= “src “为源文件目录,
这个目录下的文件会被编译器编译. kind= “output “是java文件编译输出
目录,src目录下的文件会编译到这个目录下。
当修改项目属性-> java build path时这个文件会被自动修改
方法2:
将源码包移到非workspace目录下,然后
new -> android project -> create project from exist source
添加写 工程名称则可
注意如果不移到非workspace目录下, 出现如下错误信息:
Invalid project description——>detail: ->>> xxxx(project path) overlaps the location of another project: ‘xxxx’
eclipse插件在创建项目的时候需要在workspace目录下创建一个同名的目录。
但发现workspace目录下已存在对应的目录时,就会报上面的处错误信息了
- 【坑】Some projects cannot be imported because they already exist in the workspace
- Some projects cannot be imported because they already exist in the workspace error in Eclipse
- Android开发问题 - Some projects cannot be imported because they already exist in the workspace
- Some projects cannot be imported because they already exist in the workspace
- Some projects cannot be imported because they already exist in the workspace
- Some projects cannot be imported because they already exist in the workspace
- 解决错误 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(CCES)bug “Some projects cannot be imported because they already exist in the workspace”
- MyEclipse导入失败,提示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
- 错误解决: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 解决办法
- 解决错误 Some projects cannot be imported because they already exist in the workspace
- 解决:Some projects cannot be imported because they already exist in the workspace
- 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
- Some projects cannot be imported because they already exist in the workspace
- 互金平台数据透析:用这3个模型就够了
- RESTEasy的一些事情--配置
- HTML5触摸事件(touchstart、touchmove和touchend)
- 面试时,面试官问我什么是“产品思维”?
- LTE小区搜索-物理小区ID和同步信号PSS、SSS
- 【坑】Some projects cannot be imported because they already exist in the workspace
- 卷积神经网络中十大拍案叫绝的操作
- 识别浮点常量问题
- Android接口回调interfaceCallBack
- 所实施的保护措施
- 最后一波机会!!本周你最不能错过的互联网大会,VIP门票0元限时抢!
- 好的互联网产品,都先解决了用户的「焦虑感」
- 如何在App崩溃时执行一段代码
- 有环链表的问题解决思路