Command-line tools
Android–h
Help commands to confirm that the installation configuration is successful and to see other commands.
Post-run results such as:
Create an AVD virtual appliance
Android Create Avd–n <name>-t <targetid>[-<option><value>]
<name> is the name of the AVD to be created
<targetID> is available Android Targets, which is the SDK version that you use, you can enter the following commands:
Android list targets
For example, get targets first:
Then create the AVD:
Note:-T 2 (2: Is the ID of the device)
You can use the Android list AvD to view the virtual devices that are created on your computer.
The location of the AVD is specified according to an environment variable called "Android_sdk_home" , which is saved in the default directory of the system if the variable is not specified.
The default path in Windows system is C:\USERS\<USER>\.ANDROID\AVD
The visual approach is to run the AVD Manager.exe in the SDK directory directly by clicking on the
Start the simulation machine
The emulator.exe executable file in the SDK Tools directory is a simulation emulator for the hardware device.
Emulator uses a configuration called Android Virtual Device (AVD) to specify the Android version, hardware options, and emulator skins.
EMULATOR–AVD <avdname>
The Android emulator provides many options for you to set parameters to determine the behavior and appearance of the emulator when you start the emulator.
Commonly used settings are the Android virtual device AVD, the display screen size, and the specified SD memory card.
The standard commands are as follows:
EMULATOR–AVD <avdname>-skin <skinID>-sdcard <filepath>
Deleting a virtual machine
Android Delete Avd–n <name>
Android Development DOS command line create AVD