安装完android SDK后(官方最新,完全安装,加载所有选项),在windows下AVD的管理需要用到android SDK Tools目录下的android命令行工具。

1、cmd

2、cd空格“Tools绝对路径通过复制获得”

3、常用命令:

android list targets-------列表显示android目标操作系统;

android create avd -n<name> -t <target id>;

android create avd -n android1.5 -t 1;建立android1.5系统的虚拟设备;

android list avds-------列表显示所有已知建立的AVD;

android delete avd -n <name>

android delete avd -n android1.5;删除AVD;

更多的命令可以键入:android --help 获得

Usage:
android [global options] action [action options]

Global options:
-v --verbose Verbose mode: errors, warnings and informational messages are pr
inted.
-h --help Help on a specific command.
-s --silent Silent mode: only errors are printed out.

Valid actions are composed of a verb and an optional direct object:
- list : Lists existing targets or virtual devices.
- list avd : Lists existing Android Virtual Devices.
- list target : Lists existing targets.
- create avd : Creates a new Android Virtual Device.
- move avd : Moves or renames an Android Virtual Device.
- delete avd : Deletes an Android Virtual Device.
- update avd : Updates an Android Virtual Device to match the folders
of a new SDK.
- create project : Creates a new Android project.
- update project : Updates an Android project (must already have an Androi
dManifest.xml).
- create test-project : Creates a new Android project for a test package.
- update test-project : Updates the Android project for a test package (must al
ready have an AndroidManifest.xml).
- create lib-project : Creates a new Android library project.
- update lib-project : Updates an Android library project (must already have a
n AndroidManifest.xml).
- update adb : Updates adb to support the USB devices declared in the
SDK add-ons.
- update sdk : Updates the SDK by suggesting new platforms to install
if available.

命令行记录:

Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.

C:/Documents and Settings/a>cd C:/Program Files/Android/android-sdk/tools

C:/Program Files/Android/android-sdk/tools>android list targets
Available Android targets:
id: 1 or "android-3"
Name: Android 1.5
Type: Platform
API level: 3
Revision: 4
Skins: HVGA (default), HVGA-L, HVGA-P, QVGA-L, QVGA-P
id: 2 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: 3 or "android-4"
Name: Android 1.6
Type: Platform
API level: 4
Revision: 3
Skins: HVGA, QVGA, WVGA800 (default), WVGA854
id: 4 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, WVGA800 (default), QVGA
id: 5 or "android-7"
Name: Android 2.1-update1
Type: Platform
API level: 7
Revision: 2
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WVGA800 (default), WVGA854
id: 6 or "Google Inc.:Google APIs:7"
Name: Google APIs
Type: Add-On
Vendor: Google Inc.
Revision: 1
Description: Android + Google APIs
Based on Android 2.1-update1 (API level 7)
Libraries:
* com.google.android.maps (maps.jar)
API for Google Maps
Skins: WVGA854, WQVGA400, HVGA, WQVGA432, WVGA800 (default), QVGA
id: 7 or "android-8"
Name: Android 2.2
Type: Platform
API level: 8
Revision: 2
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WVGA800 (default), WVGA854
id: 8 or "Google Inc.:Google APIs:8"
Name: Google APIs
Type: Add-On
Vendor: Google Inc.
Revision: 2
Description: Android + Google APIs
Based on Android 2.2 (API level 8)
Libraries:
* com.google.android.maps (maps.jar)
API for Google Maps
Skins: WVGA854, WQVGA400, HVGA, WQVGA432, WVGA800 (default), QVGA
id: 9 or "Samsung Electronics Co., Ltd.:GALAXY Tab Addon:8"
Name: GALAXY Tab Addon
Type: Add-On
Vendor: Samsung Electronics Co., Ltd.
Revision: 1
Based on Android 2.2 (API level 8)
Skins: WVGA854, WQVGA400, GALAXY Tab (default), HVGA, WQVGA432, WVGA
GA
id: 10 or "android-9"
Name: Android 2.3.1
Type: Platform
API level: 9
Revision: 2
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WVGA800 (default), WVGA854
id: 11 or "Google Inc.:Google APIs:9"
Name: Google APIs
Type: Add-On
Vendor: Google Inc.
Revision: 2
Description: Android + Google APIs
Based on Android 2.3.1 (API level 9)
Libraries:
* com.google.android.maps (maps.jar)
API for Google Maps
Skins: WVGA854, WQVGA400, HVGA, WQVGA432, WVGA800 (default), QVGA
id: 12 or "Sony Ericsson Mobile Communications AB:EDK:9"
Name: EDK
Type: Add-On
Vendor: Sony Ericsson Mobile Communications AB
Revision: 1
Description: XPERIA Device
Based on Android 2.3.1 (API level 9)
Libraries:
* com.sonyericsson.eventstream_1 (com.sonyericsson.eventstream_1.ja
Library for Android Market filtering
Skins: WVGA854, WQVGA400, Xperia (default), HVGA, WQVGA432, WVGA800,
id: 13 or "android-10"
Name: Android 2.3.3
Type: Platform
API level: 10
Revision: 1
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WVGA800 (default), WVGA854
id: 14 or "Google Inc.:Google APIs:10"
Name: Google APIs
Type: Add-On
Vendor: Google Inc.
Revision: 1
Description: Android + Google APIs
Based on Android 2.3.3 (API level 10)
Libraries:
* com.google.android.maps (maps.jar)
API for Google Maps
Skins: WVGA854, WQVGA400, HVGA, WQVGA432, WVGA800 (default), QVGA
id: 15 or "android-11"
Name: Android 3.0
Type: Platform
API level: 11
Revision: 1
Skins: WXGA (default)
id: 16 or "Google Inc.:Google APIs:11"
Name: Google APIs
Type: Add-On
Vendor: Google Inc.
Revision: 1
Description: Android + Google APIs
Based on Android 3.0 (API level 11)
Libraries:
* com.google.android.maps (maps.jar)
API for Google Maps
Skins: WXGA (default)

C:/Program Files/Android/android-sdk/tools>android create avd -n android2.3.1 -t
10
Android 2.3.1 is a basic Android platform.
Do you wish to create a custom hardware profile [no]no;如果输入yes,会进入用户定制模式
Created AVD 'android2.3.1' based on Android 2.3.1,
with the following hardware config:
hw.lcd.density=240
vm.heapSize=24

C:/Program Files/Android/android-sdk/tools>android list avds
Available Android Virtual Devices:
Name: android1.5
Path: C:/Documents and Settings/a/.android/avd/android1.5.avd
Target: Android 1.5 (API level 3)
Skin: HVGA
---------
Name: android2.3.1
Path: C:/Documents and Settings/a/.android/avd/android2.3.1.avd
Target: Android 2.3.1 (API level 9)
Skin: WVGA800

C:/Program Files/Android/android-sdk/tools>android delete avd -n android1.5
Deleting file C:/Documents and Settings/a/.android/avd/android1.5.ini
Deleting folder C:/Documents and Settings/a/.android/avd/android1.5.avd

AVD 'android1.5' deleted.

C:/Program Files/Android/android-sdk/tools>android list avds
Available Android Virtual Devices:
Name: android2.3.1
Path: C:/Documents and Settings/a/.android/avd/android2.3.1.avd
Target: Android 2.3.1 (API level 9)
Skin: WVGA800

更多相关文章

  1. 安装apk文件到模拟器
  2. android sdk+eclipse+adt 配置与开发
  3. Android获得屏幕分辨率的两种方法
  4. android的互联网开发 下
  5. Android安装使用过程
  6. Android(安卓)监听程序的安装、卸载、替换
  7. android 设备调试Installation failed with message INSTALL_CAN
  8. Android(安卓)APP--建立简单的交互界面
  9. 第三方应用放在/system/preloadapp/下,开机不会自动安装问题解决

随机推荐

  1. MySQL5.7.27-winx64版本win10下载安装教
  2. MySQL中的长事务示例详解
  3. 详解MySQL 5.7 MGR单主确定主节点方法
  4. macOS 下的 MySQL 8.0.17 安装与简易配置
  5. Windows环境下MySQL 8.0 的安装、配置与
  6. mysql最新版8.0.17解压版安装教程
  7. mysql 8.0.17 解压版安装配置方法图文教
  8. MySql逗号拼接字符串查询的两种方法
  9. Django2.* + Mysql5.7开发环境整合教程图
  10. Mysql数据库清理binlog日志命令详解