1.cmd>
2.cd D:/eclipse_AllSDK/android-sdk-window/tool 进入该目录下。
3.需要创建一个Android emulator(Android 模拟器) 用来install所生成的.apk文件;
在创建模拟器之前,我们需要运行下 android list target 查看可用的Android 版本,因为在创建模拟器时有个必选参数就是-target。返回结果:
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 "android-4"
Name: Android 1.6
Type: Platform
API level: 4
Revision: 1
Skins: HVGA (default), QVGA, WVGA800, WVGA854
id: 4 or "android-5"
Name: Android 2.0
Type: Platform
API level: 5
Revision: 1