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

前端 未结 21 1089
被撕碎了的回忆
被撕碎了的回忆 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:09

    Today I accidentally solved the issue:

    Below 2 steps may not be involved but not sure:

    1. Call from (Eclipse menu)* "/Window/Android SDK Manager" and update a) "Android SDK Tools" b) "Android SDK Platform-tools" packages
    2. Call from Eclipse menu "/Help/Check for Updates" and update Eclipse. Restart Eclipse.

    Steps below are necessary:

    1. From eclipse menu "/File/Import/Android/Existing Android Code Into Workspace"
    2. Browse and select problematic project/or problematic projectS parent directory.
    3. Check "Copy projects into workspace".
    4. Check "Add projects into working sets".
    5. Press finish.

    6. [Optional scenario]: If project(s) and their containing folders have been renamed with the fully qualified package names then simply click on project node parent (where you see project package name instead of project's old name) in Eclipse and rename project with old name. Eclipse will rename folder too.

    P.S. Tested on Eclipse Juno.

    Edit: Many times have passed since this answer and new Eclipse and Android SDK arrived. They have no much more problems during importing existing projects. The only thing one has to consider before importing is to move project folders(those ones one is willing to import) outside of eclipse workspace dir and then check checkboxes ("copy projects into working sets", "add projects into wokring sets") in import wizard dialog. Also I recommend doing this with latest Android SDK because it no more imports projects with dummy names and does not rename folders as it did in some custom cases.

提交回复
热议问题