安装Android SDK

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

安装Android SDK

安装Android SDK

1.下载相关文件

下面的7个文件(当然,可以只下载其中一个),解压缩到:/Android SDK/platforms/下面https:///android/repository/android-1.1_r1-windows.zip

https:///android/repository/android-1.5_r03-windows.zip

https:///android/repository/android-2.0_r01-windows.zip

https:///android/repository/android-2.0.1_r01-windows.zip

https:///android/repository/android-1.6_r02-windows.zip

https:///android/repository/android-2.1_r01-windows.zip

/android/repository/android-2.2_r01-windows.zip

如下文件解压缩到:/Android SDK/tools/下面

https:///android/repository/tools_r05-windows.zip

如下文件解压缩到:/Android SDK/usb_driver/下面

https:///android/repository/usb_driver_r03-windows.zip

如下文件解压缩到:/Android SDK/add-ons/下面

https:///android/repository/google_apis-3-r03.zip

https:///android/repository/google_apis-4_r02.zip

https:///android/repository/google_apis-5_r01.zip

https:///android/repository/google_apis-6_r01.zip

https:///android/repository/google_apis-7_r01.zip

解压后,即完成安装。

2.配置SDK

在Windows机器上,右键单击我的电脑,选择属性->高级,点“环境变量”按钮,修改“系统变量”下面的Path变量,把SDK tools的真实路径加入其中(即Android sdk 解压后的文件夹下的tool路径在这里我是D:\Android SDK\tools)。添加完后,可以在命令行下用命令测试:android --help,如果出现android的帮助命令就说明配置好了。

下面这步可有可无

新建ANDROID_SDK_HOME这个环境变量名,值为SDK所在根目录(我的是D:\Android SDK )

3.查看模拟器

配置好SDK后,开始--运行:cmd 回车

输入android list targets 回车

屏幕上会列出所有安装好的模拟器类型,如:

C:\Documents and Settings\Administrator>android list targets Available Android targets:

id: 1 or "android-2"

Name: Android 1.1

Type: Platform

API level: 2

Revision: 1

Skins: HVGA (default), HVGA-L, HVGA-P, QVGA-L, QVGA-P id: 2 or "android-3"

Name: Android 1.5

Type: Platform

API level: 3

Revision: 1

Skins: HVGA (default), HVGA-L, HVGA-P, QVGA-L, QVGA-P id: 3 or "Google Inc.:Google APIs:3"

Name: Google APIs

Type: Add-On

Vendor: Google Inc.

Revision: 3

Description: Android + Google APIs

Based on Android 1.5 (API level 3)

Libraries:

* com.google.android.maps (maps.jar)

API for Google Maps

Skins: QVGA-P, HVGA-L, HVGA (default), QVGA-L, HVGA-P id: 4 or "android-4"

Name: Android 1.6

Type: Platform

API level: 4

Revision: 1

Skins: HVGA (default), QVGA, WVGA800, WVGA854

id: 5 or "Google Inc.:Google APIs:4"

Name: Google APIs

Type: Add-On

Vendor: Google Inc.

Revision: 2

Description: Android + Google APIs

Based on Android 1.6 (API level 4)

Libraries:

* com.google.android.maps (maps.jar)

API for Google Maps

Skins: WVGA854, HVGA (default), WVGA800, QVGA

id: 6 or "android-5"

Name: Android 2.0

Type: Platform

API level: 5

Revision: 1

Skins: HVGA (default), QVGA, WQVGA400, WQVGA432, WVGA800, WVGA854 id: 7 or "Google Inc.:Google APIs:5"

Name: Google APIs

Type: Add-On

Vendor: Google Inc.

Revision: 1

Description: Android + Google APIs

Based on Android 2.0 (API level 5)

Libraries:

* com.google.android.maps (maps.jar)

API for Google Maps

Skins: WVGA854, WQVGA400, HVGA (default), WQVGA432, WVGA800, QVGA id: 8 or "android-6"

Name: Android 2.0.1

Type: Platform

API level: 6

Revision: 1

Skins: HVGA (default), QVGA, WQVGA400, WQVGA432, WVGA800, WVGA854 id: 9 or "Google Inc.:Google APIs:6"

Name: Google APIs

Type: Add-On

Vendor: Google Inc.

Revision: 1

Description: Android + Google APIs

Based on Android 2.0.1 (API level 6)

Libraries:

* com.google.android.maps (maps.jar)

API for Google Maps

Skins: WVGA854, WQVGA400, HVGA (default), WQVGA432, WVGA800, QVGA id: 10 or "android-7"

Name: Android 2.1

Type: Platform

API level: 7

Revision: 1

相关文档
最新文档