Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the buildToolsVersion for android SDK 24?

There's not much I can say about this. Oh well. Google released a new version of android called Nougat (android N). It is compileSdkVersion 24. However, on the build tools page in the official documentation, it is not mentioned.

I want to give my app to 100% of the people using Google Play Store, which includes android N users.

tl;dr: What should I fill in the buildToolsVersion field?

Thanks.

like image 409
petnamedsteve Avatar asked Jul 26 '16 11:07

petnamedsteve


People also ask

What is buildToolsVersion Android Studio?

buildToolsVersion is the version of the compilers (aapt, dx, renderscript compiler, etc...) that you want to use. For each API level (starting with 18), there is a matching . 0.0 version. At IO 2014, we release API 20 and build-tools 20.0. 0 to go with it.

What is Android SDK file size?

Android SDK (Software Development Kit) (about 5 GB) for developing and running Android apps.

How do I change my buildToolsVersion?

If you want to change the Build Tools version in your project, that is specified in project's build. gradle file (in the 'app' module). Open the file and either add or update the Build Tools version you want to use by adding/updating the following property in the 'android' section: android { buildToolsVersion "27.0.


2 Answers

buildToolsVersion

Using android gradle plugin version > 3 you can remove the android.buildToolsVersion property

Quoting from the New Features section of the Android Gradle plugin release notes for version 3.0.0:

You no longer need to specify a version for the build tools. By default, the plugin automatically uses the minimum required build tools version for the version of Android plugin you're using.

[minSdkVersion, targetSdkVersion, compileSdkVersion]

like image 90
yoAlex5 Avatar answered Oct 07 '22 11:10

yoAlex5


buildToolsVersion should be set to 25 and 25.0.0, as seen below:

compileSdkVersion 25
buildToolsVersion '25.0.0'
useLibrary 'org.apache.http.legacy'

defaultConfig {
    minSdkVersion 15
    targetSdkVersion 25
    versionCode 1
    versionName "1.0"
}

You can get the latest buildToolsVersion from SDK Manager in Android Studio.

like image 35
mujjuraja Avatar answered Oct 07 '22 11:10

mujjuraja