Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to import existing Android project into Eclipse?

  1. File → Import → General → Existing Projects into Workspace → Next
  2. Select root directory: /path/to/project
  3. Projects → Select All
  4. Uncheck Copy projects into workspace and Add project to working sets
  5. Finish

Solved: If you want to "Create project from existing source", you need to create a new directory and then put the project directory tree into that new directory. Then point to the new directory when importing.


This error message appears when the source code you try to import is inside an existing workspace.

Put your source code in a directory OUTSIDE any existing workspace and then import


Just delete the ".project" file in your project folder (it's hidden on Linux, use "ls -a" to show), then from Eclipse, choose Create Android Project from existing source


Im not sure this will solve your problem since I dont know where it originats from, but when I import a project i go File -> Import -> Existing projects into workspace. Maybe it will circumvent your problem.


It seems you cannot have your project root, with the AndroidManifest.xml deeper than one directory level below your workspace root. I struggled for an hour with this before I just gave up and rearranged my repo.