Skip to content

Instantly share code, notes, and snippets.

@srayhunter
Last active September 18, 2023 13:13
Show Gist options
  • Save srayhunter/4bce340b62109b5bae43 to your computer and use it in GitHub Desktop.
Save srayhunter/4bce340b62109b5bae43 to your computer and use it in GitHub Desktop.
Android - Update Android SDK from the commandline

Android - Update Android SDK from the commandline

Update the installed packages

sdkmanager --update

List all items (--all is needed to show obsolete, build tools and other items)

sdkmanager --list

Install a new package from the out put from --list

sdkmanager "build-tools;26.0.0"

Example

sdkmanager "build-tools;26.0.0" "platforms;android-26"
@faizan002
Copy link

Would that work for windows and in fully non-interactive mod ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment