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!


当前回答

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

其他回答

我也一直在为类似的问题而绞尽脑汁。唯一有帮助的就是遵循这篇文章中的步骤。

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

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

以下是我做的非常有效的方法。我只是在通用下导入了一个现有的项目,而不是导入一个android项目。

你用的是什么操作系统?我使用Linux Mint。在我的例子中,结果是一个符号链接问题。每次我尝试用符号链接路径创建项目时,它都会给我这个错误。在其他地方创建项目,然后将其迁移到符号链接目录,为我解决了这个问题。