The avdmanager is a tool that lets you create and manage Android
Virtual Devices (AVDs) from the command line. An AVD lets you define the
characteristics of an Android phone, Wear OS watch, or Android TV device that
you want to simulate in the Android Emulator.
Android CLI
Download the Android CLI
Use Android CLI to create Android Virtual Devices
avdmanager tool is deprecated.
Instead, use the Android CLI android emulator
command to create AVDs.android emulator [create|remove]
If you're using Android Studio, then you don't need to use this tool and you can instead create and manage AVDs from the IDE.
The avdmanager tool is included in the Android SDK Command-Line Tools package
at
android_sdk/cmdline-tools/version/bin/avdmanager.
Syntax
To use avdmanager, use the following syntax:
avdmanager [global options] command [command options]
Global options
Table 1. List of global options for avdmanager.
| Global option | Description |
|---|---|
-s | --silent
|
Silent mode: only errors are printed out. |
-h | --help
|
Usage help. |
-v | --verbose
|
Verbose mode: errors, warnings, and informational messages are printed. |
--clear cache
|
Clear the SDK Manager repository manifest cache. |
Commands and command options
Table 2. List of commands and options for avdmanager.
| Command and options | Description |
|---|---|
create avd -n name -k "sdk_id" [-c
{path|size}] [-f] [-p path]
|
Create a new AVD. You must provide a name for the AVD and
specify the ID of the SDK package to use for the AVD using
sdk_id wrapped in quotes.
For example, the following command creates an AVD named avdmanager create avd -n test -k "system-images;android-25;google_apis;x86"
|
delete avd -n name
|
Delete an AVD. You must specify the AVD with name. |
move avd -n name [-p path] [-r
new-name]
|
Move or rename an AVD. You must specify the AVD with name.
The following describes the usages for the other options:
|
list [target|device|avd] [-c]
|
List all available targets, device definitions, or AVDs. If you don't
specify target, device, or avd,
avdmanager lists all three. Include the -c
argument to receive a compact output suitable for scripts. The
-c argument is not available when listing all three options
together.
|