Skip to content

Instantly share code, notes, and snippets.

@calendee
Last active February 8, 2019 22:18
Show Gist options
  • Save calendee/03c3776d3c2710ad71b7b53989e24872 to your computer and use it in GitHub Desktop.
Save calendee/03c3776d3c2710ad71b7b53989e24872 to your computer and use it in GitHub Desktop.
Launch Android Emulator from a Mac Command Line without Opening Android Studio
# Put this in your `~/.bash_profile`
export ANDROID_HOME=/Users/YOUR_USER_DIRECTORY_HERE/Library/Android/sdk
# NOTE: To use this right away in the same terminal or any
# currently open terminal, you'll need to source it:
> source ~/.bash_profile
# Now, see what emulators you have:
> $ANDROID_HOME/emulator/emulator -list-avds
# You'll get a list like this:
Pixel_XL_API_28
Pixel_XL_API_27
# Now launch one of the emulators
> nohup $ANDROID_HOME/emulator/emulator -avd Pixel_XL_API_28 &>/dev/null &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment