从源代码管理开放现有项目 [英] Opening existing project from source control
问题描述
此部分工作正常。
但是,当我尝试将新克隆的本地副本拉入Eclipse时,我收到以下错误:
/ Users / Andrew / Dev / Workspace / Android / MyProject与另一个项目的位置重叠:'MyProject'
我的猜测是,我已经提交了一些元文件或我不应该拥有的东西。有人有什么想法吗?这是我的.hgignore:
语法:regexp
\.DS_Store
.swo
.swp
.metadata /
/ bin /
注意:看起来像我的hgignore没有阻止gen文件夹。这可能是问题的一部分?
Eclipse中有一个错误,不能让您创建一个Android项目现有资料来源:
http:// code.google.com/p/android/issues/detail?id=8431
您必须将MyProject 移动到在其子目录中没有任何其他项目的文件夹。然后,您可以使用 MyProject 从现有来源创建一个新项目。从工作区中删除新项目,而不删除磁盘上的内容并将其移回到您的 Android 文件夹。现在,将导入 - >常规 - >现有项目转换为工作区,并且可以导入 MyProject 。
这是我能够做到的唯一方法。
I've been pushing my source to a Mercurial repository. Today I needed to delete my local copy and re-clone. I did this by simply moving my local copy somewhere else (just in case) and typing "hg clone url".
This part has worked just fine.
However, when I try to pull the newly cloned local copy into Eclipse, I get the following error:
/Users/Andrew/Dev/Workspace/Android/MyProject overlaps the location of another project: 'MyProject'
My guess is that I have been committing some meta file or something that I shouldn't have. Does anyone have any ideas? Here is my .hgignore:
syntax: regexp
\.DS_Store
.swo
.swp
.metadata/
/bin/
Note: Looks like my hgignore is not blocking the gen folder. Could this be part of the problem?
There is a bug in Eclipse what won't let you create an Android project from existing sources:
http://code.google.com/p/android/issues/detail?id=8431
You have to move MyProject to a folder that doesn't have any other projects in its sub-directories. You can then make a new project from existing source with MyProject. Remove the new project from the workspace without deleting the contents on disk and move it back to your Android folder. Now do an Import -> General -> Existing Project into Workspace, and MyProject should be available to import.
This is the only way I've been able to do it.
这篇关于从源代码管理开放现有项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!