Android Install Older Version of Build Tools
If you need to install an older version of Android’s build tools, you can do so using the below. Search for the SDK version you want:
$: android list sdk --all | grep -I tools
Which will then give you an indexed list of SDKs:
1- Android SDK Tools, revision 25.2.5 2- Android SDK Platform-tools, revision 25.0.4 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 6- Android SDK Build-tools, revision 24.0.3 7- Android SDK Build-tools, revision 24.0.2 8- Android SDK Build-tools, revision 24.0.1 9- Android SDK Build-tools, revision 24 10- Android SDK Build-tools, revision 23.0.3 11- Android SDK Build-tools, revision 23.0.2 12- Android SDK Build-tools, revision 23.0.1 13- Android SDK Build-tools, revision 23 (Obsolete) 14- Android SDK Build-tools, revision 22.0.1 15- Android SDK Build-tools, revision 22 (Obsolete) 16- Android SDK Build-tools, revision 21.1.2 17- Android SDK Build-tools, revision 21.1.1 (Obsolete) 18- Android SDK Build-tools, revision 21.1 (Obsolete) 19- Android SDK Build-tools, revision 21.0.2 (Obsolete) 20- Android SDK Build-tools, revision 21.0.1 (Obsolete) 21- Android SDK Build-tools, revision 21 (Obsolete) 22- Android SDK Build-tools, revision 20 23- Android SDK Build-tools, revision 19.1 24- Android SDK Build-tools, revision 19.0.3 (Obsolete) 25- Android SDK Build-tools, revision 19.0.2 (Obsolete) 26- Android SDK Build-tools, revision 19.0.1 (Obsolete) 27- Android SDK Build-tools, revision 19 (Obsolete) 28- Android SDK Build-tools, revision 18.1.1 (Obsolete) 29- Android SDK Build-tools, revision 18.1 (Obsolete) 30- Android SDK Build-tools, revision 18.0.1 (Obsolete) 31- Android SDK Build-tools, revision 17 (Obsolete)
and then you can install a specific package with the ID:
$: android update sdk -u -a -t 6
This blog post helped to discover the way to accomplish this.