Eclipse “Invalid Project Description” when creating new project from existing source

前端 未结 21 1081
被撕碎了的回忆
被撕碎了的回忆 2020-12-04 05:35

I am trying to create a new project from existing source code. I keep getting the following error: \"Invalid Project Description\", project path \"overlaps the location of a

相关标签:
21条回答
  • 2020-12-04 06:14

    If you wish to open a new project from an existing source code in the following way:

    File -> Import -> General -> Existing Project into Workspace
    

    you still have the message "Invalid Project Description". I solve it just by going in

    File -> Switch Workspace
    

    and choosing one of the recent workspaces.

    0 讨论(0)
  • 2020-12-04 06:16

    Go into your workspace, and move your project source code folder to another area outside of your workspace (like the desktop). Make sure the project is deleted in eclipse, then create a new project from source from that directory.

    Another thing you could do is try creating a project of a different name (from the first project's source), so that the workspace will contain the new project as a functional project. Then, go into your workspace directory and absolutely delete the folder that contained the original project, or move it. Try loading the project from source again, this time using the second project, by naming it with the correct name. Or, you could try refactoring the second project back to the first's name.

    0 讨论(0)
  • 2020-12-04 06:16

    Copy the project into your workspace, create new Android Application Project with the same name from eclipse file->new->project and voila.

    0 讨论(0)
  • 2020-12-04 06:18

    I solved this problem with using the following steps:

    1) File -> Import
    2) Click General then select Existing Projects into Workspace
    3) Click Next
    4) Browse the directory of the project
    

    Click Finish!

    It worked for me

    0 讨论(0)
  • 2020-12-04 06:20

    This problem drives me crazy as well but I know what the cause of it is. The problem is that eclipse is not smart enough to create a folder with the same name of your project within your workspace folder if it is custom.

    The way to solve this is to make sure all of your projects are in a folder with the name that matches your Project Name, otherwise it will dump all of your project files straight into the directory. The reason why you end up seeing that error is because it thinks you are putting a project inside another project (probably reads the project config file).

    I noticed this is especially a problem when not using the default workspace path. The way I solve this problem is to just add the Project Name to the end of location. So let's say you are putting a project named "HelloWorld" into /Users/name/Documents/projects/android/, you would want to manually add "HelloWorld" to the end of it, like this: /Users/name/Documents/projects/android/HelloWorld. This would ensure that the project is put in it's own folder called "HelloWorld" and not inside some other project. Be sure that if there are any projects not within folders into a folder of the same name as the project to solve the errors.

    0 讨论(0)
  • 2020-12-04 06:20

    What operating system are you using? I use Linux Mint. In my case it turned out to be a symbolic link issue. Every time I tried to create the project with the symlink path, it would give me that error. Creating the project elsewhere, and then migrating it to the symlinked directory solved it for me.

    0 讨论(0)
提交回复
热议问题