[英]Import sample project into eclipse
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.
如何导入android示例项目,如: https : //developer.android.com/training/location/retrieve-current.html到只有res,src和manifest的eclipse。 I wish to know the right way and not copy - paste, also import project does not work here.
我希望知道正确的方法,而不是复制 - 粘贴,也导入项目在这里不起作用。
This is very easy: 这很容易:
Unzip the code, now you have the folder " LocationUpdates
" containing the Manifest.xml
file, /src
and /res
folders. 解压缩代码,现在您拥有包含
Manifest.xml
文件, /src
和/res
文件夹的文件夹“ LocationUpdates
”。
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 在Eclipse中转到:
File
> import
>选择Android
文件夹, Existing Android Code Into Workspace
>浏览到要导入的项目所在的目录,然后选中“ Copy projects into workspace
>“ Next
>“如果要在项目名称中更改”选项New Project Name
>完成
Refresh F5 and Build your project 刷新F5并构建项目
In other situations where we only have /res
and /src
folder, the only way is creating a new project. 在我们只有
/res
和/src
文件夹的其他情况下,唯一的方法是创建一个新项目。
我猜你应该创建一个新的Android应用程序项目,并复制粘贴所有res,源和清单将只是解决方案
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.