Android SDK can be updated from command line by following these steps:
Note: You'll be asked to accept few licenses. Type 'y' or 'n' to accept or reject.
You can see all the available packages using this command:
A particular package can be updated and installed using this command:
- cd to directory where Android SDK is installed
- cd <path-to-sdk-installation>
- execute this command:
- android update sdk --no-ui
Note: You'll be asked to accept few licenses. Type 'y' or 'n' to accept or reject.
You can see all the available packages using this command:
android list sdk --all
A particular package can be updated and installed using this command:
android update sdk -u --all --filter <number-listed-on-the-list>