无法导入某些项目,因为它们已经存在于Eclipse中的工作区错误中

本文翻译自:Some projects cannot be imported because they already exist in the workspace error in Eclipse

I am trying to import a project that me and my co-worker have been working on.. and keep getting this error after I select-- "import" then "import existing project" then click archive file, and then I click next, and this error comes up: 我正在尝试导入一个我和我的同事一直在努力的项目。.在选择“导入”然后“导入现有项目”然后单击存档文件,然后单击下一步之后,不断出现此错误。并出现此错误:

"Some projects cannot be imported because they already exist in the workspace" “无法导入某些项目,因为它们已经存在于工作空间中”


#1楼

参考:https://stackoom.com/question/saYX/无法导入某些项目-因为它们已经存在于Eclipse中的工作区错误中


#2楼

也许您在'.project'文件中获得了相同的项目名称,请选中它,如果是,请重命名另一个名称。


#3楼

In eclipse click file then select switch workspace then browse and select another folder. 在eclipse中,单击文件,然后选择切换工作区,然后浏览并选择另一个文件夹。 Now repeat the same process and this time there will be no error :) 现在重复相同的过程,这次将没有错误:)


#4楼

Nothing about could not solve my situation. 没什么能解决我的情况。 This is how I solved. 这就是我解决的方法。

  1. Close the IDE 关闭IDE
  2. Remove the same name project form workspace 删除相同名称的项目表单工作区
  3. Start the IDE 启动IDE
  4. Clean all project (not sure this helped) 清理所有项目(不确定是否有帮助)
  5. File > Import > Existing Project 文件>导入>现有项目
  6. click refresh button 单击刷新按钮
  7. import project 导入项目

Done.. 完成..


#5楼

Another way I just found! 我刚刚找到的另一种方式!

MOVE the project to some other folder and then import and if required copy to workspace 将项目移动到其他文件夹,然后导入,如果需要,将其复制到工作区


#6楼

如果您是因为已将git项目克隆到现有工作空间中而到达此位置,而现在又想将该工作空间升级为完整的项目,则应使用“ Git存储库”视图->选择“工作目录”->导入项目->现有项目。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值