在 Eclipse 中打开一个项目

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2122179/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 14:20:21  来源:igfitidea点击:

Open a project in Eclipse

javaandroideclipse

提问by Barryman9000

I'm completely new to Eclipse/Java/Android programming, so this might sound like a dumb question, but I can't open the project I was working on last week... it's the "HelloWorld" project.

我对 Eclipse/Java/Android 编程完全陌生,所以这听起来像是一个愚蠢的问题,但我无法打开上周正在处理的项目......它是“HelloWorld”项目。

I'm very familiar with Visual Studio so I've been looking for something like a project file/solution or a way to open a directory in Eclipse, but I'm having no luck and am completely lost.

我对 Visual Studio 非常熟悉,所以我一直在寻找类似项目文件/解决方案或在 Eclipse 中打开目录的方法,但我没有运气,完全迷失了方向。

Any help is appreciated!

任何帮助表示赞赏!

回答by mattjames

Can you try File->Import and then choose Existing Projects into Workspace and then select the directory with your HelloWorld project?

您可以尝试 File->Import 然后选择 Existing Projects into Workspace 然后选择您的 HelloWorld 项目所在的目录吗?

回答by Steve

Looks like I had it checked not to show closed projects.

看起来我检查过它不显示已关闭的项目。

回答by ja_chu

Eclipse will look into the .project file in your project directory and see the original project name, which may be the same as another project. This can happen if you build a new project using some old code.

Eclipse 将查看项目目录中的 .project 文件并查看原始项目名称,该名称可能与另一个项目相同。如果您使用一些旧代码构建一个新项目,就会发生这种情况。