如何在Eclipse中打开现有项目 [英] How to open existing project in Eclipse

查看:126
本文介绍了如何在Eclipse中打开现有项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有点笨,但是我根本无法让它工作....



我有一个现有的Android项目从我的其他电脑复制,在文件夹中

  c:\projects\trunk\android\emergency 

(我在其他电脑上创建了该项目,将其复制到我的新电脑,其他电脑被放弃)
现在我想要在Eclipse中打开项目。所以我想我试过一切,但我似乎无法让它工作...



我寻找像'开放项目',但没有找到。



然后我尝试' import ,但这不会让我导入它,因为它是相同的工作空间(我使用相同的文件位置和工作区的位置,在其他电脑上)



然后我尝试创建新工作区,并将其导入。然后它抱怨没有项目,我第一次必须创建一个。所以我在新的工作空间中创建了一个虚拟的工作空间,导入项目,并将其全部复制到新的工作区,并将其放在虚拟项目下面。



这样就可以帮助我吗?



Btw,这是我使用的Eclipse:
Eclipse SDK
版本:4.2.0
构建ID:I20120608-1400

解决方案

尝试文件 新的> 项目... > Android项目从现有代码
不要将您的项目从pc复制到工作区,将其复制到其他位置,并通过上面的菜单命令将eclipse复制到工作区,并在现有工作区中检查副本。


I kind of feel stupid, but I just can't get it to work....

I have an existing Android project copied from my other pc, in the folder

c:\projects\trunk\android\emergency

(I created that project on the other pc, copied it to my new pc and the other pc is given away) Now I want to open the project in Eclipse. So I THINK I tried everything, but I can't seem to get it to work...

I looked for something like 'open project', but didn't find it.

Then I tried 'import', but that wouldn't let me import it because it was the same workspace (I use the same filelocations and workspace location as on the other pc)

Then i tried creating a new workspace and import it there. Then it complained about have no project, that i first had to create one. So i did create a dummy one in the new workspace, imported the project, and it copied everything to the new workspace, and placed it below the dummy project.

I am SO stuck, can you help me?

Btw, this is the Eclipse i'm using: Eclipse SDK Version: 4.2.0 Build id: I20120608-1400

解决方案

Try File > New > Project... > Android Project From Existing Code. Don't copy your project from pc into workspace, copy it elsewhere and let the eclipse copy it into workspace by menu commands above and checking copy in existing workspace.

这篇关于如何在Eclipse中打开现有项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆