Michel
Michel

Reputation: 23605

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

Upvotes: 118

Views: 152962

Answers (7)

Ramanand Bhat
Ramanand Bhat

Reputation: 1

Assume that the application folder is in your pen drive.

open eclipse, go to import,select Android,In Android select "existing android code into workspace"

next and finish.

Ramanand Bhat

Upvotes: -1

tim doyle
tim doyle

Reputation: 201

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

It's probably already open in the workspace, but you may have closed the navigator panel, so it looks like you don't have the project open.

Eclipse using ADT Build v22.0.0-675183 on Linux.

Upvotes: 20

MemoryLeak
MemoryLeak

Reputation: 502

File > Import > General > Existing Projects into workspace. Select the root folder that has your project(s). It lists all the projects available in the selected folder. Select the ones you would like to import and click Finish. This should work just fine.

Upvotes: 11

Ramin Ahmadi
Ramin Ahmadi

Reputation: 629

i use Mac and i deleted ADT bundle source. faced the same error so i went to project > clean and adb ran normally.

Upvotes: 1

biegleux
biegleux

Reputation: 13247

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.

Upvotes: 131

Lanaru
Lanaru

Reputation: 9701

It's the "Import existing project into workspace" option under Import->General.

See: http://help.eclipse.org/helios/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Ftasks%2Ftasks-importproject.htm

Upvotes: 23

Vinay W
Vinay W

Reputation: 10190

Right click in navigator-Import-existing project..-select the base directory of your project

Upvotes: 0

Related Questions