Last active
September 29, 2017 09:47
-
-
Save 62mkv/51398dc2511fcf684ff87d3f044d95b9 to your computer and use it in GitHub Desktop.
How to update Android SDK components (this is necessary to accept licenses)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # cd to ANDROID_SDK folder: | |
| cd /opt/android-sdk-linux | |
| # show which packages are available for install (for example, for Build Tools 25:) | |
| ./tools/android list sdk --all | grep Build | grep 25 | |
| # 3- Android SDK Build-tools, revision 25.0.2 | |
| # 4- Android SDK Build-tools, revision 25.0.1 | |
| # 5- Android SDK Build-tools, revision 25 | |
| # 25- Android SDK Build-tools, revision 19.0.2 (Obsolete) | |
| # install/update the necessary package | |
| sudo ./tools/android update sdk -u -a -t 5 | |
| # some tools may require this command (use as an example only): | |
| sudo ./tools/bin/sdkmanager "extras;m2repository;com;android;support;constraint;constraint-layout;1.0.2" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment