AS 强制使用 android SDK Build Tools 25.0.0 SDK Build Tools 修订版 (23.0.3) 对项目来说太低了 [英] AS forcing to use android SDK Build Tools 25.0.0 SDK Build Tools revision (23.0.3) is too low for project

查看:38
本文介绍了AS 强制使用 android SDK Build Tools 25.0.0 SDK Build Tools 修订版 (23.0.3) 对项目来说太低了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正面临构建版本问题.当我运行应用程序时,它抛出一个错误,

Hi I am facing build version issue. When I run the app, it throws an error that,

错误:项目:Yampp"的 SDK 构建工具修订版 (23.0.3) 太低.最低要求是 25.0.0

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

我需要使用 23.0.3,但它强制使用 25.0.0.奇怪的问题怎么解决?

I need to use 23.0.3, but it's forcing to use 25.0.0. How to solve the strange issue?

这里是 Gradle 文件

Here are the Gradle files

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()
    }
}

推荐答案

错误:项目:Yampp"的 SDK 构建工具修订版 (23.0.3) 太低.最低要求是 25.0.0

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

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

Just upgrade build tools to 25.0.0 this doesn't affect the app behavior.

  buildToolsVersion "25.0.0"

这篇关于AS 强制使用 android SDK Build Tools 25.0.0 SDK Build Tools 修订版 (23.0.3) 对项目来说太低了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆