Starting the emulator
Use the emulator command to start the emulator, as an alternative to running your project or starting it through the AVD Manager.
Here's the basic command-line syntax for starting a virtual device from a terminal prompt:
emulator -avd avd_name [ {-option [value]} … ]
Or
emulator @avd_name [ {-option [value]} … ]
For example, if you launch the emulator from within Android Studio running on a Mac, the default command line will be similar to the following:
$ /Users/janedoe/Library/Android/sdk/tools/emulator -avd Nexus_5X_API_23 -netdelay none -netspeed full
You can specify startup options when you start the emulator, but not later on.
For a list of AVD names, enter the following command:
emulator -list-avds
No comments:
Post a Comment