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 another project" with the same name. The reason is that I created that project from the source code before, but then I deleted that project and deleted its whole directory, before adding the source code directory again. I tried everything like cleaning and restarting, but nothing worked. I looked in my workspace directory, but there are no traces for the old project. There are several questions around this problem such as this Attempting Android Notepad Tutorial - Exercise 1 - More problems, but none of the answers worked for me!


当前回答

我摆脱了我的问题通过改变文件>工作空间,然后,重新启动后,重新设置工作空间。

其他回答

我使用以下步骤解决了这个问题:

File ->导入 单击General,然后在Workspace中选择Existing Projects 单击Next 浏览项目目录 单击Finish。

这对我很有效

Suppose you have something like: /prj/workspace/prj1 /prj/workspace/prj2 And your eclipse workspace is in /prj/workspace level (i.e. /prj/workspace/.metadata). If you're having problem importing prj1 and prj2, you can either move your .metadata somewhere else (/prj/.metadata, /prj/eclipse/.metadata, etc.) or create a sub level in workspace so that it looks like: /prj/workspace/android/prj1 /prj/workspace/android/prj2 And import prj1 and prj2 again. In another word: as long as prj1, prj2, and .metadata are not in the same level it will be fine.

将需要的代码复制到工作区文件夹之外的某个地方 使用该文件夹中的现有代码创建一个新项目 项目创建后,右键单击它并重构> Move 把它放到工作区文件夹中。(使用默认位置)

复制项目到你的工作空间,从eclipse文件>新建>项目创建新的Android应用程序项目,瞧。

将项目源代码和支持库粘贴到任何其他新创建的文件夹中,并尝试从那里导入。这对我很管用。