导入示例项目导入Eclipse [英] Import sample project into eclipse
问题描述
我知道这可能是一个菜鸟的问题,但我没有这样做之前。如何导入Android的样本项目,如: https://developer.android.com/培训/位置/检索,current.html
日食仅具有资源,src和体现。我想知道正确的方式,而不是复制 - 粘贴,还引进项目不在这里工作了。
I know it may be a rookie question but I haven't done this before. How do I import android sample project like: https://developer.android.com/training/location/retrieve-current.html to eclipse that have only res, src and manifest. I wish to know the right way and not copy - paste, also import project does not work here.
推荐答案
这是很容易的:
解压code,现在你有文件夹 LocationUpdates
包含的Manifest.xml
文件, / src目录
和 / RES
文件夹。
Unzip the code, now you have the folder "LocationUpdates
" containing the Manifest.xml
file, /src
and /res
folders.
在Eclipse中转到:文件
> 导入
>选择的Android
文件夹,现有的Android code进入工作区
>
浏览到您的项目导入所在的目录,然后检查选项复制项目进入工作区
> 下一页
>更改如果你想在项目名称新建项目名称
>完成
In Eclipse Go to: File
> import
> select Android
Folder, Existing Android Code Into Workspace
>
Browse to the directory where your project to import is located, and check the option Copy projects into workspace
> Next
> Change if you want the project name in New Project Name
> Finish
刷新<大骨节病> F5 骨节病>并生成项目。
在其他情况下,我们只有 / RES
和 / src目录
文件夹中,唯一的办法就是创建一个新的项目。
In other situations where we only have /res
and /src
folder, the only way is creating a new project.
这篇关于导入示例项目导入Eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!