E:\Android\sdk\tools>android --help

Usage:

android [global options] action [action options]

Global options:

-h --help : Help on a specific command.

-v --verbose : Verbose mode, shows errors, warnings and all messages.

--clear-cache: Clear the SDK Manager repository manifest cache.

-s --silent : Silent mode, shows errors only.

Valid

actions

are

composed

of a verb

and an

optional

direct

object:

- sdk : Displays the SDK Manager window.

SDK管理界面

- avd : Displays the AVD Manager window.

AVD管理界面

- list : Lists existing targets or virtual devices.

列出AVD和手机设备(已经连接上,并开启了adb服务的)

- list avd : Lists existing Android Virtual Devices.

列出AVD

- list target : Lists existing targets.

列出手机设备

- list sdk : Lists remote SDK repository.

获取SDK的代码库信息

- create avd : Creates a new Android Virtual Device.

创建AVD

- move avd : Moves or renames an Android Virtual Device.

移动或重命名AVD

- delete avd : Deletes an Android Virtual Device.

删除AVD

- update avd : Updates an Android Virtual Device to match the folders

of a new SDK.

更新AVD信息,如文件配置目录

- create project : Creates a new Android project.

创建android项目

- update project : Updates an Android project (must already have an

AndroidManifest.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

already have an AndroidManifest.xml).

- create lib-project : Creates a new Android library project.

创建Lib类型的Android项目

- update lib-project : Updates an Android library project (must already have

an AndroidManifest.xml).

- create uitest-project: Creates a new UI test project.

- update adb : Updates adb to support the USB devices declared in the

SDK add-ons.

更新ADB,以支持USB设备

- update sdk : Updates the SDK by suggesting new platforms to install

if available.

想获取具体命令更详细的参数,如创建AVD的详细参数:

输入 android create avd

E:\Android\sdk\tools>android create avd

Error: The parameters --name, --target must be defined for action 'create avd'

Usage:

android [global options] create avd [action options]

Global options:

-h --help : Help on a specific command.

-v --verbose : Verbose mode, shows errors, warnings and all messages.

--clear-cache: Clear the SDK Manager repository manifest cache.

-s --silent : Silent mode, shows errors only.

Action "create avd":

Creates a new Android Virtual Device.

Options:

-c --sdcard : Path to a shared SD card image, or size of a new sdcard for

the new AVD.

创建SDCARD-c后面是SDCARD的本地路径或者大小,如果是路径,则指向一个sdcard.img,否则在默认位置产生一个新指定大小(MB)sdcard.img

当前目录下有个mksdcard.exe可以创建sdcard文件

-n --name : Name of the new AVD. [required] AVD的命名【必要】

-a --snapshot: Place a snapshots file in the AVD, to enable persistence.

快照功能,当下次重新启动AVD时可以直接加载退出时的状态和应用

-p --path : Directory where the new AVD will be created.

AVD文件所在目录

-f --force : Forces creation (overwrites an existing AVD)

覆盖已有AVD文件

-s --skin : Skin for the new AVD.

指定skin,就是分辨率参数

-t --target : Target ID of the new AVD. [required]

就是API Level【必要】

-b --abi : The ABI to use for the AVD. The default is to auto-select the

ABI if the platform has only one ABI for its system images.

硬件配置,system.img,如指定机型HTCsystem.img

示例:android create avd -n AVD23 -t 10 -s WVGA –c 512

创建一个Android 2.3.3AVD,支持SDCARD,大小512MB,屏幕分辨率WVGA,命名为AVD23

提示:可以通过android avd调出avd GUI编辑界面来熟悉每个命令对应的参数。


更多相关文章

  1. android 日志文件输出
  2. gradle 配置文件 build.gradle 属性详解
  3. android文件缓存,并SD卡创建目录未能解决和bitmap内存溢出解决
  4. Android 在程序界面上显示图片
  5. ImageVIew 设置图片大小
  6. android 布局文件 layout_weight用法
  7. android 中xml文件中出现 Attr.value missing 错误
  8. android的TableLayout布局界面元素填满整个屏幕

随机推荐

  1. android 获得Android设备唯一标识码 ANDR
  2. android map (地图)
  3. android进程创建分析
  4. android adb
  5. Android中的事件分发机制
  6. Android(安卓)之 Window、WindowManager
  7. Android(安卓)1.5和Android(安卓)2.1在相
  8. android区分pad还是phone设备
  9. Android(安卓)实现自适应正方形GridView
  10. Android命令行下运行JAVA程序之StatusBar