Android SDK的安装

想要学习Android,需要先下载安装Android SDK,然后在编译软件中安装插件,如在Eclipse中安装ADT。

 

Android官网为:www.android.com

 

开官网,拉到网页底部点击“Developers”,进入developer.android.com

 

 在上方点击SDK标签。

 

 在右侧表格里选择相应系统的SDK下载。

 

(也可以直接点击本页的链接下载。)

PlatformPackageSizeMD5 Checksum
Windowsandroid-sdk_r15-windows.zip33895447 bytescc2aadf7120d12b574981461736a96e9
installer_r15-windows.exe (Recommended)33902520 bytesee8481cb86a6646a4d963d5142902c5c
Mac OS X (intel)android-sdk_r15-macosx.zip30469921 bytes03d2cdd3565771e8c7a438f1c40cc8a5
Linux (i386)android-sdk_r15-linux.tgz26124434 bytesf529681fd1eda11c6e1e1d44b42c1432

 

下载安装完成后,在安装目录下找到“SDK Manager.exe”,双击打开:

 

选择你需要的项目安装。对于这些项目,官网上有相关说明:

EnvironmentSDK ComponentComments
BasicSDK ToolsIf you've just installed the SDK starter package, then you already have the latest version of this component. The SDK Tools component is required to develop an Android application. Make sure you keep this up to date.
SDK Platform-toolsThis includes more tools that are required for application development. These tools are platform-dependent and typically update only when a new SDK platform is made available, in order to support new features in the platform. These tools are always backward compatible with older platforms, but you must be sure that you have the latest version of these tools when you install a new SDK platform.
SDK platformYou need to download at least one platform into your environment, so that you will be able to compile your application and set up an Android Virtual Device (AVD) to run it on (in the emulator). To start with, just download the latest version of the platform. Later, if you plan to publish your application, you will want to download other platforms as well, so that you can test your application on the full range of Android platform versions that your application supports.
+ 
Recommended
(plus Basic)
DocumentationThe Documentation component is useful because it lets you work offline and also look up API reference information from inside Eclipse.
SamplesThe Samples components give you source code that you can use to learn about Android, load as a project and run, or reuse in your own app. Note that multiple samples components are available — one for each Android platform version. When you are choosing a samples component to download, select the one whose API Level matches the API Level of the Android platform that you plan to use.
Usb DriverThe Usb Driver component is needed only if you are developing on Windows and have an Android-powered device on which you want to install your application for debugging and testing. For Mac OS X and Linux platforms, no special driver is needed.
+ 
Full
(plus Recommended)
Google APIsThe Google APIs add-on gives your application access to the Maps external library, which makes it easy to display and manipulate Maps data in your application.
Additional SDK PlatformsIf you plan to publish your application, you will want to download additional platforms corresponding to the Android platform versions on which you want the application to run. The recommended approach is to compile your application against the lowest version you want to support, but test it against higher versions that you intend the application to run on. You can test your applications on different platforms by running in an Android Virtual Device (AVD) on the Android emulator.

 

简单地来说,Tools下的项目全部都要安装;Tools下的项目,个人建议全部安装;剩下的是各版本的Android,1和2打头的是手机的Android版本,3打头的是平板的Android版本,4.0则是同时兼容手机和平板,不过不太成熟,不建议日常开发之用,不过体验下还是不错的。

各版本里,SDK Platform是Android官方的平台,Documentation是Android的帮助文档,Samples是一些样品的源代码,Google APIs是google公司定制的平台,其他项目类似。

个人建议安装Tools、Tools、4.0中的Documentation和SDK Platform、3.2中的SDK Platform、2.3.3中的SDK Platform和Google APIs。

 

好了,只要你把这些安装完成,那么你的Android SDK就安装完成啦~~

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值