当前位置: 代码迷 >> Android >> Android SDK的装配
  详细解决方案

Android SDK的装配

热度:44   发布时间:2016-05-01 15:15:04.0
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就安装完成啦~~

  相关解决方案