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

标签 android gradle android-gradle-plugin build.gradle build-tools

我知道这个问题已经被问了很多遍了,但是无法为我解决。
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
}
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'
    }
}
}

所以问题是从哪里获取构建工具版本24.0.3的,因为我将其设置为25.0.1
只是感到困惑!

最佳答案

共有3个步骤:
您可以尝试这样。我也有同样的问题。

enter image description here

关于android - SDK平台工具版本(24.0.3)太旧,无法检查使用API​​ 25编译的API [警告],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41114927/

相关文章:

android - 覆盖默认的android键盘

spring - 如果 Spring Boot 的属性文件中未提供占位符值,如何跳过?

android - 在 Android 中运行单元测试的最快方法是什么

android - 什么是 CoordinatorLayout?

java - 写入输出时遇到问题 : Too many methods: 66024; max is 65536. 按包:错误

android - 是否可以在gradle productFlavors中声明变量并在Java中使用它?

android - 找不到Gradle DSL方法: 'implementation()'(Android React Native)

android - 将后缀添加到生成的字符串资源

android - 无法使用转换 AarTransform 转换文件 '45907c80e09917e1b776adf038505958' 以匹配属性 {artifactType=jar}

安卓;从普通 Activity 启动和停止 openGL 动画