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.
-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.
- avd : Displays the AVD Manager window.
- list : Lists existing targets or virtual devices.
- list avd : Lists existing Android Virtual Devices.
- list target : Lists existing targets.
- list sdk : Lists remote SDK repository.
- 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
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.
- update lib-project : Updates an Android library project (must already have
an 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.
- create identity : Creates an identity file.
create project action options:
Options:
-n --name : Project name.
-t --target : Target ID of the new project. [required]
-p --path : The new project's directory. [required]
-k --package : Android package name for the application. [required]
-a --activity: Name of the default Activity that is created. [required]
注:执行create project命令时似乎不可以在盘符(c:\、d:\等等)的根目录下进行,而必须在其子文件夹中才可以创建工程。
例如d:\test目录下建立名为HelloWorld的android工程