Created
October 26, 2017 10:30
-
-
Save vinaysshenoy/499a59d5a48905937ff93ba92dd73d12 to your computer and use it in GitHub Desktop.
Run emulator via command line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add Android SDK Emulator binary to path | |
export PATH=:<Path To Android SDK>/emulator | |
# Add alias for running any emulator | |
alias run_avd='function _run_avd(){ emulator -avd $1 -dns-server 8.8.8.8; };_run_avd' | |
# To run emulator via command line, there are 2 steps | |
# $emulator -list-avds | |
# Above command will list al AVDS available, copy the one you want to launch | |
# $run_avd <AVD_NAME> | |
# Use the above command to run whichever AVD you need |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment