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.
"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.
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.
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.
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. )
Had same issue, changed the workspace to one directory above the project and then imported project. Worked for me
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With