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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |