Skip to content

Instantly share code, notes, and snippets.

@tg44
Created November 14, 2018 20:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tg44/ea5608bed083b62629eef023282c33f2 to your computer and use it in GitHub Desktop.
Save tg44/ea5608bed083b62629eef023282c33f2 to your computer and use it in GitHub Desktop.
Android emulator minimum CLI install for Mac
/*
If you want to use Android studio ever, go and download + install that! (Huge but reliable!)
Min req:
- brew installed
- java installed:
brew cask install caskroom/versions/java8
The steps below sometimes requires user interaction (like accepting licenses)!
*/
brew cask install android-sdk
touch ~/.android/repositories.cfg
//sanity check
sdkmanager --list
//min required manager packages
sdkmanager "emulator" "platform-tools"
//from the --list choose a system image and install it (also add the platform if not already installed)
sdkmanager "system-images;android-28;google_apis;x86" "platforms;android-28"
//create your first virtual device (named test)
echo "no" | avdmanager create avd -n test -k "system-images;android-28;google_apis;x86"
//start the emulator
/usr/local/share/android-sdk/emulator/emulator -avd test -noaudio -no-boot-anim
//if the emulator failed to start you can try
export ANDROID_SDK_ROOT="/usr/local/share/android-sdk"
//for better perfomance you can try HAXM
brew cask install intel-haxm
sdkmanager "extras;intel;Hardware_Accelerated_Execution_Manager"
/*
After this you probably want to go to settings (its a bit tricky on 28 you find the hog on the extended notification bar),
settings > system > about device > build number
unlock dev mode, and check if usb debug is enabled
*/
//list the device with
adb devices
//for the Monitor UI
/usr/local/share/android-sdk/tools/monitor
/*
My problems with other methods in 2018.11.10. (+ I tried, ? I tried before on other platforms, - I turned back from the download page):
(+) Android studio: Big.
(+) Docker: you need virtualization enabled, privileged mode, vnc, still not really existing a get and go emulator image... I can't get a running image in 4 hour...
(+) BlueStacks: not compatible with docker, if you have BS and docker installed, docker will arguing at every startup.
(?) VMs (with Bliss or Android-x86): Slow to install, slow to run, and big.
(?) Genymotion: You need to pay...
(+) Andy: Needs privileged install, android 4.2.2
(+) NOX Player: Android 4.4.1
(?) Xamarin: Really big. (I liked their emulator on windows...)
(-) Archon: not for devs.
(-) Droid4X: Android 4.2.2
(-) Ko Player: Android 4.4 (not really mac friendly)
(-) MeMu Play: I didn't found a mac download link but it listed on some Mac Emulator lists...
(-) RemixOS: Not even an english site :D Seems to be Win only...
(-) YouWave: Android 4.0.4 or you need to pay.
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment