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!
当前回答
有各种各样的场景,但在我的例子中,我想保留文件夹及其内容,因为它已经从.git中签出。但是,我需要能够使用Eclipse修改源代码和其他内容。
我发现问题是.cproject和.project文件的路径信息非常特定于环境(与我的环境不匹配)。
我所做的是:
创建了一个新的空文件夹(名称不同),并创建了一个新的 指向该文件夹的工作区。 签出或复制。git项目/文件夹到空文件夹中。 然后导入工作区中的“常规”“现有项目”。
关键似乎是用不同的名称创建顶层的空白工作空间。
我希望这能帮助到一些人。
其他回答
以下是我做的非常有效的方法。我只是在通用下导入了一个现有的项目,而不是导入一个android项目。
我摆脱了我的问题通过改变文件>工作空间,然后,重新启动后,重新设置工作空间。
这个选项解决了我的问题。
链接:http://fledglingsnook.wordpress.com/2012/08/09/eclipse-issue-overlaps-the-location-of-another-project/
转到项目的。project文件,确保它显示的名称与项目文件夹中显示的名称相同。如果不是,请更改名称。它会起作用的。
如果你希望以以下方式从现有源代码打开一个新项目:
File -> Import -> General -> Existing Project into Workspace
你仍然有“无效的项目描述”的信息。 我只要进去就能解出来
File -> Switch Workspace
选择一个最近的工作场所。
推荐文章
- BottomSheetDialogFragment的圆角
- 在应用程序启动时出现“无法获得BatchedBridge,请确保您的bundle被正确打包”的错误
- 我如何改变默认对话框按钮的文本颜色在安卓5
- 更改单选按钮的圆圈颜色
- 如何在android中复制一个文件?
- adb找不到我的设备/手机(MacOS X)
- 如何在清洁模式下运行eclipse ?如果我们这样做会发生什么?
- 如何在新的材质主题中改变背面箭头的颜色?
- androidviewpager与底部点
- 相同的导航抽屉在不同的活动
- 如何从视图中获得托管活动?
- 单一的TextView与多种颜色的文本
- 如何在非活动类(LocationManager)中使用getSystemService ?
- 在清单中注册应用程序类?
- Android:从数组中编程创建旋转器