Android:gradle 插件版本號(hào)與gradle 版本號(hào)對(duì)應(yīng)關(guān)系

gradle文件夾 - gradle-wrapper.properties 中指的是gradle?版本號(hào)

build.gradle文件 - classpath ‘com.android.tools.build:gradle:3.1.2’ 指的是 gradle 插件的版本號(hào),而不是 gradle 的版本號(hào)。

不過(guò) gradle 插件的版本號(hào)和 gradle 的版本號(hào)又是有關(guān)聯(lián)的,關(guān)系如下:?


續(xù):下面是詳細(xì)gradle插件版本與gradle版本更新日志(至2019.1.10):

來(lái)自:https://developer.android.google.cn/studio/releases/gradle-plugin#updating-plugin

2.2.0 (September 2016)

Gradle 2.14.1 or higher.
Build Tools 23.0.2?or higher.

2.3.0 (February 2017)

Gradle 3.3 or higher.
Build Tools 25.0.0?or higher.

3.0.0 (October 2017)

Gradle 4.1?or higher. To learn more, read the section about?updating Gradle.

Build Tools 26.0.2?or higher. With this update, you no longer need to specify a version for the build tools—the plugin uses the minimum required version by default. So, you can now remove the?android.buildToolsVersion?property.

3.1.0 (March 2018)

Gradle 4.4?or higher. To learn more, read the section about?updating Gradle.
Build Tools 27.0.3?or higher. Keep in mind, you no longer need to specify a version for the build tools using the?android.buildToolsVersion?property—the plugin uses the minimum required version by default.

3.2.0 (September 2018)

This version of the Android plugin requires the following:
Gradle 4.6?or higher. To learn more, read the section about?updating Gradle.
SDK Build Tools 28.0.3?or higher.

3.2.1 (October 2018)

With this update, you no longer need to specify a version for the SDK Build Tools. The Android Gradle plugin now uses version 28.0.3 by default.

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容