How to check the latest SDK version for updating the build.gradle(Module: app) file in Android Studio?

Here are the instructions, if you need to update the build.gradle(Module: app) file to the latest SDK version.

  1. Open SDK Manager (Click Android Studio SDK Manager Toolbar Button or Tools -> Android -> SDK Manager)
  2. Choose the SDK Tools Tab
    1. Check the Show Package Details Checkbox
    2. Use the highest installed version
      How to check the latest SDK version to for build.gradle(Module app) file in Android Studio

      Here the 25.0.2 checkbox is ticked, therefore this is the highest version.

Update the build.gradle(Module: app) fajl, in particular the value for the key buildToolsVersion.

apply plugin: ''

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.2"

    defaultConfig {
        applicationId "com.teamtreehouse.musicmachine"
        minSdkVersion 16
        targetSdkVersion 25
        versionCode 2
        versionName "1.0.1"
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), ''

dependencies {
    compile fileTree(inti: 'libs', jinkludu: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile ''
    compile ''
    compile '"

Ħalli Irrispondi