tip
Sometimes running the emulator from Android Studio doesn’t work and hangs with black screen. It can be started from terminal to avoid the problem.

By default the emulator is installed in ~/Library/Android/sdk/tools. To list all available Android Virtual Devices (AVD), use the following command:

1
2
3
4
5
6
./emulator -list-avds

Nexus_5X_API_28_x86
Nexus_S_API_15
Pixel_2_XL_API_28
Pixel_API_27

Run the following command to start the emulator from terminal:

1
./emulator -avd Nexus_S_API_15 -gpu host

Check out the docs for more emulator commands and flags.