In-depth analysis of official Android commands
Author: Song Zhihui
The android command is a very important development tool. It can:
Create, delete, and view Android Virtual Devices (AVDs ). Create and update an android project. Update your android SDK.
If you are using Android Studio or eclipse, the android commands have been integrated into the IDE. Therefore, you do not need to run it directly in the command line. To view the introduction of android commands, run the android-help command.
Syntax
Android [global Options] action [action options]
Global option-s. Silent mode, only output error. -H. Help. -V. Output errors, warnings, and messages. AVD actions and options
| Action |
Option |
Description |
| Avd |
None |
Run AVD Manager |
| Sdk |
None |
Run Android SDK Manager |
| Create avd |
-N <Name> |
Avd name |
| |
-T <target ID> |
Target ID of the System Image |
| |
-C path or size |
SD card for AVD |
| |
-F |
Force create AVD |
| |
-P path |
AVD file path |
| |
-S |
Set AVD skin |
| Delete avd |
-N name |
Delete avd |
| Move avd |
-N name |
Move avd by name |
| |
-P path |
|
| |
-R name |
Rename the avd name |
| Update avd |
-N name |
Move avd by name |
Project actions and options
| Action |
Option |
Description |
| Create project |
Omitted |
Create a project |
| Update project |
Omitted |
Update a project |
| Create test-project |
Omitted |
Create a test project |
| Update test-project |
Omitted |
Update test project |
| Create lib-project |
Omitted |
Create a lib Project |
| Update lib-project |
Omitted |
Update lib Project |
| Create uitest-project |
Omitted |
Create a UI test project |
Update adb. Update adb. Update sdk. Update the sdk.