SDK平台工具版本(24.0.3)太旧,无法检查使用API​​ 25编译的API [警告]

and*_*ann 0 android build-tools gradle build.gradle android-gradle-plugin

我知道这已被问过很多次了,但却无法解决这个问题.

Main Project Gradle

dependencies {
    classpath 'com.android.tools.build:gradle:2.2.3'

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}
Run Code Online (Sandbox Code Playgroud)

App Module Gradle File

android {
compileSdkVersion 25
buildToolsVersion "25.0.1"
defaultConfig {
    applicationId "com.something"
    minSdkVersion 15
    targetSdkVersion 25
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
}
Run Code Online (Sandbox Code Playgroud)

所以问题在于它将构建工具版本放在何处,24.0.3因为我已将其设置为25.0.1

只是困惑!!

小智 5

有3个步骤:你可以这样试试.我也有同样的问题.

在此输入图像描述