Skip to content

Instantly share code, notes, and snippets.

@caryfuk
Forked from spilth/android-emulator-homebrew.sh
Last active February 9, 2018 17:21
Show Gist options
  • Save caryfuk/b0edecfd925a27fbcc49c7155b20e223 to your computer and use it in GitHub Desktop.
Save caryfuk/b0edecfd925a27fbcc49c7155b20e223 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
brew install qt
export ANDROID_SDK_ROOT="/usr/local/share/android-sdk"
sdkmanager "platform-tools" "platforms;android-27" "extras;intel;Hardware_Accelerated_Execution_Manager" "build-tools;27.0.0" "system-images;android-27;google_apis;x86" "emulator"
avdmanager create avd -n test -k "system-images;android-27;google_apis;x86" --tag google_apis
/usr/local/share/android-sdk/tools/emulator -avd test
# use /usr/local/share/android-sdk/tools/emulator -avd tablet -skin 1280x800 to set up resolution
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment