androidbuild-toolsandroid-buildconfig

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.


Solution

  • buildToolsVersion should be set to 34 and 34.0.0, as seen below:

    compileSdkVersion 34
    buildToolsVersion '34.0.0'
    useLibrary 'org.apache.http.legacy'
    
    defaultConfig {
        minSdkVersion 20
        targetSdkVersion 34
        versionCode 1
        versionName "1.0"
    }
    

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