


Sdk can be installed on /Library/Android/sdk or /usr/local/ to be sure check it by which sdkmanagerĮxport ANDROID_HOME export ANDROID_HOME=$HOME/Library/Android/sdk Update your environment variables: android-28 / android-30 usr/local/share/android-sdk/emulator/emulator -avd test Install emulators? Nga copied from sdkmanager -no_https -install emulatorĬreate and run virtual devices? Nga copied from avdmanager list (find device skin id, lets use pixel 17)Īvdmanager create avd -f -n test -d 17 -k 'system-images android-29 google_apis_playstore x86_64'Īvdmanager list avd (or emulator -list-avds) Check out the "Configuring VM Acceleration on Mac" section here: brew cask install intel-haxm // this might not work on high sierra.Įdit: You can download the dmg and install manually from Intel's site Sdkmanager "platform-tools" "platforms android-23" Sdkmanager -no_https -install 'platforms android-29'Įdit for build tools 23 touch ~/.android/repositories.cfg Sdkmanager -no_https -install 'build-tools 29.0.2'

Sdkmanager -no_https -install 'extras intel Hardware_Accelerated_Execution_Manager' Sdkmanager -no_https -install 'system-images android-29 google_apis_playstore x86_64' Sdkmanager -no_https -install platform-tools Sdkmanager -no_https -install 'build-tools 28'īuild tools 29 touch ~/.android/repositories.cfg Sdkmanager "platform-tools" "platforms android-28" If you need to have openjdk first in your PATH run:Įcho 'export PATH="/usr/local/opt/openjdk/bin:$PATH"' > ~/.zshrcįor compilers to find openjdk you may need to set:Įxport CPPFLAGS="-I/usr/local/opt/openjdk/include" Build tools 28 touch ~/.android/repositories.cfg Install all of the Android SDK components (you will be prompted to agree to license info and then this will take a while to run): Note that Java8 is tricky since licence changed: brew install gradle

Use Homebrew to install Android dev tools: Quick reminder: Have as many build tools as you want, have one platform tool with backwards compatibility :=)ĭownload and Install Command line tools for mac ( not the android studio unless I need it ) To install the JDKs 8 ( LTS ) from AdoptOpenJDK: # brew tap adoptopenjdk/openjdkīrew cask install adoptopenjdk/openjdk/adoptopenjdk8ĭo not follow this step if installed adoptopenjdk8 brew cask install java8Įxport JAVA_HOME on your bash profile or zshrc export JAVA_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home See for brew, python3 and NodeJS on nvm see gist Java 14 Here the SDK is under /usr/local/share/android-sdk because I may switch to a different Catalina user in the future, but it works fine under /Users//Library/Android/sdk as well. Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.
