What is the buildToolsVersion for android SDK 24?
Asked Answered
G

2

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.

Georgie answered 26/7, 2016 at 11:10 Comment(1)
if your sdk fully upgraded, then there is no need to ask this question, bcz android studio automatically set the latest version.Calvaria
C
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.

Carnallite answered 26/7, 2016 at 11:13 Comment(7)
we need useLibrary?Georgie
@Georgie Which type lib using requirement.Carnallite
@Georgie Library using..... apply plugin: 'com.android.library' android { compileSdkVersion 24 buildToolsVersion "24.0.0" defaultConfig { minSdkVersion 14 targetSdkVersion 24 }Carnallite
How did you get 24.0.2?? Android Studio tells me it is not available.Copra
@Copra - Open the SDK Manager, then Launch Standalone SDK Manager, and you should see it under Tools along with the review numberNervine
24.0.3 now availableAstrakhan
@Copra latest version can be found using https://mcmap.net/q/27080/-android-gradle-buildtoolsversion-vs-compilesdkversion and always try to set it with latest versionByandby
P
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]

Pinnatisect answered 13/3, 2018 at 11:59 Comment(1)
this should be at the top!Claqueur
C
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.

Carnallite answered 26/7, 2016 at 11:13 Comment(7)
we need useLibrary?Georgie
@Georgie Which type lib using requirement.Carnallite
@Georgie Library using..... apply plugin: 'com.android.library' android { compileSdkVersion 24 buildToolsVersion "24.0.0" defaultConfig { minSdkVersion 14 targetSdkVersion 24 }Carnallite
How did you get 24.0.2?? Android Studio tells me it is not available.Copra
@Copra - Open the SDK Manager, then Launch Standalone SDK Manager, and you should see it under Tools along with the review numberNervine
24.0.3 now availableAstrakhan
@Copra latest version can be found using https://mcmap.net/q/27080/-android-gradle-buildtoolsversion-vs-compilesdkversion and always try to set it with latest versionByandby

© 2022 - 2024 — McMap. All rights reserved.