Song Zhihui
The android command is a very important development tool that can:
- Create, delete, and view Android Virtual Devices (AVDs).
- Create and update Android projects.
- Update your Android SDK.
If you are using Android Studio or the Eclipse,android command has been integrated into the IDE. So you don't have to run it directly at the command line. To see an introduction to Android commands, you can run the Android–help command.
Grammar
Android [Global options] action [action options]
Global Options
- -S. Silent mode, output error only.
- -H. Help.
- -V. Output errors, warnings, and messages.
AVD Actions and options
| Action |
Options |
Description |
| AvD |
No |
Run AVD Manager |
| Sdk |
No |
Run the Android SDK Manager |
| Create AVD |
-N < name > |
The name of the AVD |
|
-T < target id> |
Target ID of the system image |
|
-C Path or size |
Specify the AVD SD card |
|
-F |
Force Create AVD |
|
-P Path |
Specify the AVD file path |
|
-S |
Set the skin of the AVD |
| Delete AVD |
-N Name |
Delete AVD |
| Move AVD |
-N Name |
Move the AVD by name |
|
-P Path |
|
|
-R Name |
Rename the AVD name |
| Update AVD |
-N Name |
Move the AVD by name |
Project actions and options
| Action |
Options |
Description |
| Create Project |
Slightly |
Create a project |
| Update Project |
Slightly |
Update Project |
| Create Test-project |
Slightly |
To create a test project |
| Update Test-project |
Slightly |
Update a test project |
| Create Lib-project |
Slightly |
Create Lib Project |
| Update Lib-project |
Slightly |
Update Lib Project |
| Create Uitest-project |
Slightly |
To create a UI test project |
Update action
- Update adb. Update adb.
- Update SDK. Update the SDK.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Android official command in-depth analysis of Android