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!
当前回答
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.
其他回答
进入工作空间,将项目源代码文件夹移动到工作空间之外的另一个区域(如桌面)。确保在eclipse中删除了项目,然后在该目录中从source创建一个新项目。
您可以做的另一件事是尝试创建一个不同名称的项目(来自第一个项目的源),这样工作空间将包含作为功能项目的新项目。然后,进入您的工作区目录,完全删除包含原始项目的文件夹,或者移动它。尝试再次从源代码加载项目,这次使用第二个项目,用正确的名称命名它。或者,您可以尝试将第二个项目重构为第一个项目的名称。
我也一直在为类似的问题而绞尽脑汁。唯一有帮助的就是遵循这篇文章中的步骤。
这个选项解决了我的问题。
链接:http://fledglingsnook.wordpress.com/2012/08/09/eclipse-issue-overlaps-the-location-of-another-project/
我使用以下步骤解决了这个问题:
File ->导入 单击General,然后在Workspace中选择Existing Projects 单击Next 浏览项目目录 单击Finish。
这对我很有效
我使用以下步骤解决了这个问题:
1) File -> Import
2) Click General then select Existing Projects into Workspace
3) Click Next
4) Browse the directory of the project
单击Finish。
这对我很有效
推荐文章
- Visual Studio代码- URI的目标不存在" package:flutter/material.dart "
- Tab在平板设备上不采用全宽度[使用android.support.design.widget.TabLayout]
- 我们应该用RecyclerView来代替ListView吗?
- App-release-unsigned.apk没有签名
- 如何在对话框中创建编辑文本框
- 在viewpager中获取当前Fragment实例
- 如何右对齐小部件在水平线性布局安卓?
- 如何创建EditText与十字(x)按钮在它的结束?
- 电话:用于文本输入的数字键盘
- 如何设置不透明度(Alpha)的视图在Android
- Flutter:升级游戏商店的版本代码
- Android构建脚本库:jcenter VS mavencentral
- 应用程序无法打开,因为它来自一个身份不明的开发者
- Android -包名称约定
- 在Android上以编程方式安装应用程序