Android: How to launch emulator from command line?
Step for :
- Copy this cd C:\Users{User}\AppData\Local\Android\Sdk\emulator from your system
- Paste this on System Variable Path Setting.
- List available emulators: emulator -list-avds
- Start the emulator: emulator -avd {myEmulator}
I could only successfully run the command from the tools folder (Windows 10):
cd %ANDROID_HOME%/tools
To get the list of available virtual devices:
emulator -list-avds
To run it:
emulator -avd Nexus_5X_API_24
You can then put this at a .bat file:
cd %ANDROID_HOME%/tools
emulator -avd YOUR_VIRTUAL_DEVICE_ID
Open command prompt anywhere and use the following command
To get the list of available emulator
emulator -list-avds
To open a emulator
emulator -avd Nexus_5X_API_23