从 Android 应用程序编译 Gradle 时出错:SDK 构建工具修订版 (24.0.3) 对于项目而言太低

Error compiling Gradle from Android application: The SDK Build Tools revision (24.0.3) is too low for project

apply plugin: 'com.android.application'

android {
     compileSdkVersion 19
     buildToolsVersion '24.0.3'

defaultConfig {
    applicationId "com.android.projectz.teamrocket.thebusapp"
    minSdkVersion 17
    targetSdkVersion 23
    versionCode 1
    versionName "0.7alpha-sa3cvc6"
    vectorDrawables.useSupportLibrary = true
}

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }



}



dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile files('libs/commons-net-3.5.jar')
    compile 'com.android.support:recyclerview-v7:24.2.1'
    compile 'com.android.support:cardview-v7:24.2.1'
    compile 'com.android.support:design:24.2.1'
    compile 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2'
    compile 'com.github.paolorotolo:appintro:4.1.0'
    compile 'com.afollestad.material-dialogs:core:0.9.2.3'
    compile 'com.afollestad.material-dialogs:commons:0.9.1.0'
    compile 'com.getbase:floatingactionbutton:1.10.1'
    compile 'org.apache.commons:commons-io:1.3.2'
    compile 'com.android.volley:volley:1.0.0'
    compile 'com.google.android.gms:play-services:9.8.0'
    compile 'com.android.support:appcompat-v7:24.2.1'
    testCompile 'junit:junit:4.12'
}

这是来自 "console" 的错误:

Error:The SDK Build Tools revision (24.0.3) is too low for project ':app'. Minimum required is 25.0.0

我不知道为什么,我更新了我的 Android Studio(从 2.2 到 2.3),我还安装了所有需要的包,所有必要的包(SDK 和其他)。在升级 Android Studio 之前,配置工作正常。

Error:The SDK Build Tools revision (24.0.3) is too low for project

更新 buildToolsVersion 25.0.2 但您真正的问题是:

compileSdkVersion 19

由于您使用的是 支持库 v24,因此您必须使用 API 24+ 编译

此外,强烈建议您始终使用最新的 SDK编译