← 返回命令列表

Linux command

emulator 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Start Android emulator

emulator -avd [avd_name]

List available AVDs

emulator -list-avds

Start with wiped user data

emulator -avd [avd_name] -wipe-data

Start without snapshot

emulator -avd [avd_name] -no-snapshot-load

Start with GPU acceleration

emulator -avd [avd_name] -gpu host

Start in headless mode

emulator -avd [avd_name] -no-window

说明

emulator is the Android Emulator, part of the Android SDK. It runs Android Virtual Devices (AVDs) for app testing and development, simulating various Android devices with different API levels and configurations. The emulator provides features like GPS simulation, network conditions, phone calls/SMS, camera, and accelerometer input. It integrates with Android Studio for debugging and testing.

参数

-avd _name_
Android Virtual Device name.
-list-avds
List available AVDs.
-wipe-data
Reset user data.
-no-snapshot-load
Don't load snapshot.
-no-snapshot-save
Don't save snapshot on exit.
-gpu _mode_
GPU mode: auto, host, swiftshader, off.
-no-window
Headless mode.
-no-audio
Disable audio.
-memory _size_
RAM size in MB.
-port _port_
Console port number.
-dns-server _servers_
DNS server addresses.
-http-proxy _proxy_
HTTP proxy address.

FAQ

What is the emulator command used for?

emulator is the Android Emulator, part of the Android SDK. It runs Android Virtual Devices (AVDs) for app testing and development, simulating various Android devices with different API levels and configurations. The emulator provides features like GPS simulation, network conditions, phone calls/SMS, camera, and accelerometer input. It integrates with Android Studio for debugging and testing.

How do I run a basic emulator example?

Run `emulator -avd [avd_name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -avd _name_ do in emulator?

Android Virtual Device name.