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

问题描述:

标题重复,但我的问题不同.

The title is a duplicate but my question is different.

同一个项目运行良好,允许构建在

The same project works fine and is allowed to be built on

构建工具版本 23.0.3

buildToolsVersion 23.0.3

在我同事的系统上.据我所知,只有 android studio 版本不同.如果我没有将我的 android studio 升级到2.3.Beta 2",是否有可能我仍然可以使用 23.0.3 构建吗?

on my colleague's system. As far as I know only the android studio version is different. Is it possible that if I hadn't upgraded my android studio to "2.3.Beta 2" I could still build with 23.0.3?

You have to change top-level build.gradle from

You have to change top-level build.gradle from

// Top-level build file where you can add configuration options common to all sub-projects/modules.

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

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
//        classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

到:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    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
//        classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
    }
}

allprojects {
    repositories {
        jcenter()
    }
}