Skip to content

Instantly share code, notes, and snippets.

@reime005
Created June 23, 2019 12:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reime005/a0bc3c8865c7140f9a639e6988294000 to your computer and use it in GitHub Desktop.
Save reime005/a0bc3c8865c7140f9a639e6988294000 to your computer and use it in GitHub Desktop.
Example of downloading the Android SDK via sdkmanager CLI
#!/bin/sh
# note that the $ANDROID_HOME/tools/bin folder must be in your PATH
# list all installed and available packages
exec sdkmanager --list
# install or update specific packages to the latest version. automatically accept licenses
exec yes | sdkmanager --licenses && \
sdkmanager "platforms;android-28" "build-tools;28.0.3"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment