Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android SDK Build Tool Multiple Versions

I need to know, Do we need to install every Android SDK Build Tool, or only the latest one will be sufficient?.

See this image for reference,

enter image description here

like image 240
user3141985 Avatar asked Aug 04 '14 18:08

user3141985


People also ask

Do I need to install Android SDK separately?

You will need to download the Android SDK without Android Studio bundled. Go to Android SDK and navigate to the SDK Tools Only section. Copy the URL for the download that's appropriate for your build machine OS.

Do I need to install all sdk in Android Studio?

No, You don't need to install everything. Install the "SDK Platform" for the Android versions you've set as minimum, target, and in-between the minimum & target. The Android SDK Extras are usually not required; but it is useful to be aware of them since they may be required depending on your use case.


1 Answers

Quote from official android website:

Build Tools is a component of the Android SDK required for building Android application code. The latest version of these tools is included in the SDK starter package and installed in the /build-tools/ directory.

You should always keep your Build Tools component updated by downloading the latest version using the Android SDK Manager. By default, the Android SDK uses the most recent downloaded version of the Build Tools. If your projects depend on older versions of the Build Tools, the SDK Manager allows you to download and maintain separate versions of the tools for use with those projects.

To make it short,if your project is using an OLDER version of apis (like 2.2 etc), it might make sense to use the build tools that were supplied to it.

See this to know more about the build tools.

But, having said that, there is NO NEED TO INSTALL OLDER VERSIONS of the build tools. You should always use the latest Android SDK build tools are used to debug, build, run and test an Android application,so the latest update will always have the most refined of features.

But of course, this is only for the final android app. If you want to use the version specific features of the build tools, you will need to download the respective build-tools.

Quoting The comment below for easier readability :

It's more if you created custom build scripts (Ant, Gradle, etc.) that assumed certain command-line switches for the build tools (dx, aapt, etc.), you can stick with a particular version of those build tools. Otherwise, developers tend to move to the most recent version of those tools, for better performance, bug fixes, and the like

like image 166
harveyslash Avatar answered Oct 27 '22 01:10

harveyslash