build.gradle अद्यावधिक गर्नको लागि नवीनतम SDK संस्करण कसरी जाँच गर्ने(मोड्युल: एप) एन्ड्रोइड स्टुडियोमा फाइल?

यहाँ निर्देशनहरू छन्, यदि तपाइँ build.gradle अद्यावधिक गर्न आवश्यक छ भने(मोड्युल: एप) नवीनतम SDK संस्करणमा फाइल.

  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) एन्ड्रोइड स्टुडियोमा फाइल
      Here the 25.0.2 checkbox is ticked, therefore this is the highest version.

Update the build.gradle(मोड्युल: एप) file, in particular the value for the key buildToolsVersion.

apply plugin: 'com.android.application'

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'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(तपाईं: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:25.3.1'
    compile 'com.android.support:recyclerview-v7:25.3.1'
    compile 'com.android.support:design:25.3.1'
}