AS强制使用Android SDK Build Tools 25.0.0 SDK Build Tools修订版(23.0.3)对于项目来说太低了

时间:2017-03-06 16:00:35

标签: android android-studio gradle android-gradle android-studio-2.2

您好我正面临构建版本问题。当我运行应用程序时,它会抛出错误,

  

错误:SDK Build Tools修订版(23.0.3)对于项目来说太低了:Yampp'。最低要求是25.0.0

我需要使用23.0.3,但它强制使用25.0.0。如何解决这个奇怪的问题?

以下是Gradle文件

build.gradle模块

buildscript {
    repositories {
        maven { url 'https://maven.fabric.io/public' }
    }

    dependencies {
        classpath 'io.fabric.tools:gradle:1.+'
    }
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'



android {
    compileSdkVersion 23
    buildToolsVersion "23.0.3"
    useLibrary  'org.apache.http.legacy'
    defaultConfig {
        applicationId "com.Yampp"
        minSdkVersion 14
        targetSdkVersion 23
        compileOptions {
            sourceCompatibility JavaVersion.VERSION_1_7
            targetCompatibility JavaVersion.VERSION_1_7
        }
    }

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

dependencies {
    compile 'com.android.support:appcompat-v7:23.4.0'
    compile 'com.google.android.exoplayer:exoplayer:r1.5.9'
    compile 'com.android.support:recyclerview-v7:23.4.0'
    compile files('libs/android-query.0.25.10.jar')
    compile 'com.android.support:design:23.2.1'
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.google.android.gms:play-services:9.4.0'
    compile 'com.google.android.gms:play-services-cast-framework:9.4.0'
    compile 'com.googlecode.android-query:android-query:0.25.9'
    compile 'com.android.support:mediarouter-v7:23.4.0'
    compile 'com.android.support:cardview-v7:23.0.+'
    compile('com.crashlytics.sdk.android:crashlytics:2.6.5@aar') {
        transitive = true;
    }

}

build.gradle项目

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.0'

    }
}

allprojects {
    repositories {
        jcenter()
    }
}

1 个答案:

答案 0 :(得分:7)

  

错误:SDK Build Tools版本(23.0.3)对于项目':Yampp'来说太低了。最低要求是25.0.0

只需将构建工具升级到25.0.0,这不会影响应用行为。

  buildToolsVersion "25.0.0"