21

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.

petnamedsteve
  • 347
  • 1
  • 2
  • 11
  • if your sdk fully upgraded, then there is no need to ask this question, bcz android studio automatically set the latest version. – Sagar Chavada Jul 26 '16 at 11:14

2 Answers2

18

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]

yoAlex5
  • 29,217
  • 8
  • 193
  • 205
14

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.

Rbar
  • 3,740
  • 9
  • 39
  • 69
mujjuraja
  • 359
  • 2
  • 11