Skip to content

Instantly share code, notes, and snippets.

@wok
Forked from spilth/android-emulator-homebrew.sh
Last active November 8, 2018 06:18
Show Gist options
  • Save wok/fa8c125a4bfd19329fcd806abfe74301 to your computer and use it in GitHub Desktop.
Save wok/fa8c125a4bfd19329fcd806abfe74301 to your computer and use it in GitHub Desktop.
Android Emulator with Homebrew
touch ~/.android/repositories.cfg
brew cask install caskroom/versions/java8
brew cask install android-sdk
brew cask install intel-haxm
export ANDROID_SDK_ROOT="/usr/local/share/android-sdk"
sdkmanager "platform-tools" "platforms;android-28" "extras;intel;Hardware_Accelerated_Execution_Manager" "build-tools;28.0.0" "system-images;android-28;google_apis;x86" "emulator"
avdmanager create avd -n test -k "system-images;android-28;google_apis;x86"
/usr/local/share/android-sdk/tools/emulator -avd test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment