Android 如何在 Eclipse 中打开现有项目
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11619790/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to open existing project in Eclipse
提问by Michel
I kind of feel stupid, but I just can't get it to work....
我有点觉得愚蠢,但我就是无法让它发挥作用......
I have an existing Android project copied from my other pc, in the folder
我有一个从我的另一台电脑复制的现有 Android 项目,在文件夹中
c:\projects\trunk\android\emergency
(I created that project on the other pc, copied it to my new pc and the other pc is given away) Now I want to open the project in Eclipse. So I THINK I tried everything, but I can't seem to get it to work...
(我在另一台电脑上创建了那个项目,将它复制到我的新电脑上,另一台电脑被赠送了)现在我想在 Eclipse 中打开该项目。所以我想我尝试了一切,但我似乎无法让它工作......
I looked for something like 'open project
', but didn't find it.
我寻找类似“ open project
”的东西,但没有找到。
Then I tried 'import
', but that wouldn't let me import it because it was the same workspace (I use the same filelocations and workspace location as on the other pc)
然后我尝试了“ import
”,但这不会让我导入它,因为它是相同的工作区(我使用与另一台电脑相同的文件位置和工作区位置)
Then i tried creating a new workspace and import it there. Then it complained about have no project, that i first had to create one. So i did create a dummy one in the new workspace, imported the project, and it copied everything to the new workspace, and placed it below the dummy project.
然后我尝试创建一个新的工作区并将其导入那里。然后它抱怨没有项目,我首先必须创建一个。所以我确实在新工作区中创建了一个虚拟项目,导入了项目,并将所有内容复制到新工作区,并将其放置在虚拟项目下方。
I am SO stuck, can you help me?
我被困住了,你能帮帮我吗?
Btw, this is the Eclipse i'm using: Eclipse SDK Version: 4.2.0 Build id: I20120608-1400
顺便说一句,这是我正在使用的 Eclipse:Eclipse SDK 版本:4.2.0 构建 ID:I20120608-1400
回答by biegleux
Try File
> New
> Project...
> Android Project From Existing Code
.
Don't copy your project from pc into workspace, copy it elsewhere and let the eclipse copy it into workspace by menu commands above and checking copy in existing workspace
.
试试File
> New
> Project...
> Android Project From Existing Code
。不要将您的项目从 pc 复制到工作区,将其复制到其他地方,然后让 Eclipse 通过上面的菜单命令将其复制到工作区并检查copy in existing workspace
.
回答by Lanaru
It's the "Import existing project into workspace" option under Import->General.
它是“导入”->“常规”下的“将现有项目导入工作区”选项。
请参阅:http: //help.eclipse.org/helios/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Ftasks%2Ftasks-importproject.htm
回答by tim doyle
Window->Show View->Navigator, should pop up the navigator panel on the left hand side, showing the projects list.
Window->Show View->Navigator,应该会在左侧弹出导航面板,显示项目列表。
It's probably already open in the workspace, but you may have closed the navigator panel, so it looks like you don't have the project open.
它可能已在工作区中打开,但您可能已关闭导航器面板,因此您似乎没有打开该项目。
Eclipse using ADT Build v22.0.0-675183 on Linux.
在 Linux 上使用 ADT Build v22.0.0-675183 的 Eclipse。
回答by MemoryLeak
File
> Import
> General
> Existing Projects into workspace
.
Select the root folder that has your project(s). It lists all the projects available in the selected folder. Select the ones you would like to import and click Finish
. This should work just fine.
File
> Import
> General
> Existing Projects into workspace
。选择包含您的项目的根文件夹。它列出了所选文件夹中的所有可用项目。选择您要导入的那些并单击Finish
。这应该工作得很好。
回答by Ramin Ahmadi
i use Mac and i deleted ADT bundle source. faced the same error so i went to project > clean and adb ran normally.
我使用 Mac 并删除了 ADT 包源。面临同样的错误,所以我去了项目 > 清理和亚行正常运行。
回答by Vinay W
Right click in navigator-Import-existing project..-select the base directory of your project
右键单击导航器-导入现有项目..-选择项目的基本目录
回答by Ramanand Bhat
Assume that the application folder is in your pen drive.
假设应用程序文件夹在您的笔式驱动器中。
open eclipse, go to import,select Android,In Android select "existing android code into workspace"
打开eclipse,导入,选择Android,在Android中选择“现有的android代码到工作区”
next and finish.
接下来完成。
Ramanand Bhat
拉曼南巴特