Android – how do I install a specific emulator from the command line using avdmmanager?
As in how to create Android virtual device with command line and avdmmanager? In principle, AVD can be created from the command line. Although it is not very direct. After the document, there should be a - t option, which can be used to specify a specific device that is trying to simulate with targetid. Unfortunately, since version 25.3.1, avdmmanager cannot recognize the option - T. there is an option - tag, but it does not seem to be the - t equivalent, Because it does not recognize the targetid provided (get from list)
How do I specify the device I want to emulate?
resolvent:
For example, echo "no" | avdmmanager - create AVD – force – name x86 – device "4in WVGA (Nexus s)" - package "system images; android-24; google_apis; x86" – tag "google_apis" – ABI "x86"“
where?
Usage:
avdmanager [global options] create avd [action options]
Global options:
-s --silent : Silent mode, shows errors only.
-v --verbose : Verbose mode, shows errors, warnings and all messages.
--clear-cache: Clear the SDK Manager repository manifest cache.
-h --help : Help on a specific command.
Action "create avd":
Creates a new Android Virtual Device.
Options:
-a --snapshot: Place a snapshots file in the AVD, to enable persistence.
-c --sdcard : Path to a shared SD card image, or size of a new sdcard for
the new AVD.
-g --tag : The sys-img tag to use for the AVD. The default is to
auto-select if the platform has only one tag for its system
images.
-p --path : Directory where the new AVD will be created.
-k --package : Package path of the system image for this AVD (e.g.
'system-images;android-19;google_apis;x86'). [required]
-n --name : Name of the new AVD. [required]
-f --force : Forces creation (overwrites an existing AVD)
-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.
-d --device : The optional device deFinition to use. Can be a device index
or id.