How to open existing project in 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

152570 次浏览

在导航器中右键单击-导入-现有项目...-选择项目的基本目录

它是 Import-> General 下的“ Import already project into workspace”选项。

参见: Http://help.eclipse.org/helios/index.jsp?topic=%2forg.eclipse.platform.doc.user%2ftasks%2ftasks-importproject.htm

试试 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.

我使用 Mac 并且删除了 ADT 包源代码。面对相同的错误,所以我去项目 > 干净和亚洲开发银行正常运行。

File > Import > General > Existing Projects into workspace. 选择包含项目的根文件夹。它列出所选文件夹中可用的所有项目。选择要导入的文件,然后单击 Finish。应该没问题。

Window->Show View->Navigator, should pop up the navigator panel on the left hand side, showing the projects list.

它可能已经在工作区中打开了,但是您可能已经关闭了导航面板,所以看起来您没有打开项目。

在 Linux 上使用 ADT Build v22.0.0-675183的 Eclipse。

假设应用程序文件夹在您的笔式驱动器中。

打开 eclipse,进入 import,选择 Android,在 Android 中选择“已有的 Android 代码进入工作区”

next and finish.

Ramanand Bhat