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

前端 未结 21 1103
被撕碎了的回忆
被撕碎了的回忆 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条回答
  •  Happy的楠姐
    2020-12-04 06:14

    There are a variety of scenarios, but, in my case, I wanted to retain the folder and it's contents, as it had been checked out from .git. However, I needed to be able to modify the source and other stuff using Eclipse.

    I found the problem was that the .cproject and .project files had path information that was very environment specific (and did not match my environment).

    What I did was this:

    1. Created a new empty folder(with a different name) and created a new workspace pointing to that folder.
    2. Checked out or copied the .git project/folder into the empty folder.
    3. Then imported, General, Existing projects in Workspace.

    The key seemed to be creating the top level empty work space with a different name.

    I hope this helps someone.

提交回复
热议问题