Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invalid project description when importing project into Eclipse

I know this question is posted already here, but that doesn't solve my problem.

I pull a project from github branch, and when i try to import it : File->Import->General->Existing projects into workspace then Select root directory and here when i click on Finish button i get Invalid project description.

I am pulling the project into a folder called Android, this folder contains the main folder of the project MyAndroidProject which i imported in Eclipse.

I don't know what is wrong here.

like image 253
Malloc Avatar asked Oct 01 '12 16:10

Malloc


People also ask

What is invalid project description eclipse?

"Invalid project description" error occurs during attempts to create a new project in a certain location. The message usually appears when the default workspace location is changed. Creating a project in the same directory twice will cause the error when the directory is other than the default workspace.

How do I import a project into workspace?

Click File > Import. In the Import dialog, expand General, click Existing Projects into Workspace, then click Next. Select the Select archive file option, then click that option's Browse button. Click Open. Click Finish to continue.


3 Answers

I know I'm late to the party, but just in case someone else is stuck at this point, just like me a couple of minutes ago: You could try File>Import>Existing Android Code into Workspace. I had the Git repository I wanted to import directly in my workspace. Still, I needed to check the Copy projects into workspace option in order to make it work.

Edit

I just checked out the link from one of the comments above, recommending File>Import>General>Existing Project into Workspace. I should mention that the eclipse project metadata was not under version control in my case, rendering an import as existing project impossible! This solution applies to existing android code without .project files etc.

Edit 2

Just another remark: I realized recently that this issue only seems to occur if the project root also is the repository root, much like this:

workspace  
└─ project root  
   └┬ .git
    ├ src
    └ ...

When I moved the project just one directory level lower, the issue disappeared.

like image 131
Michael Jess Avatar answered Oct 18 '22 10:10

Michael Jess


Just move the project folder one directory lower ( make another folder in the directory & copy your project into that folder. Now import the project with this newly created version. )

like image 37
Rohan K Avatar answered Oct 18 '22 11:10

Rohan K


Had same issue, changed the workspace to one directory above the project and then imported project. Worked for me

like image 33
rohitkadam19 Avatar answered Oct 18 '22 10:10

rohitkadam19