Android:gradle 插件版本号与gradle 版本号对应关系

gradle文件夹 - gradle-wrapper.properties 中指的是gradle 版本号

build.gradle文件 - classpath ‘com.android.tools.build:gradle:3.1.2’ 指的是 gradle 插件的版本号,而不是 gradle 的版本号。

不过 gradle 插件的版本号和 gradle 的版本号又是有关联的,关系如下: 

 

续:下面是详细gradle插件版本与gradle版本更新日志(至2019.1.10):

来自: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.

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值