关于The specified Android SDK Build Tools version (26.0.2) is ignored, as it is below the minimum......

今天将项目迁移到另一台笔记本,进行build出现以下问题,导致build失败

The specified Android SDK Build Tools version (26.0.2) is ignored, as it is below the minimum supported version (27.0.3) for Android Gradle Plugin 3.1.1. Android SDK Build Tools 27.0.3 will be used. To suppress this warning, remove "buildToolsVersion '26.0.2'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools. Update Build Tools version and sync project Open File
  • 1
  • 2
  • 3
  • 4

大致意思,目前使用的build工具版本26.0.2不合适。因为当前使用Gradle插件版本是3.1.1,这个版本至少需要build对应版本为27.0.3 
而且,现在每一个Gradle插件版本都对应一个build工具版本,不能混用

从上述内容看出,需要修改build对应的版本,

android {
    //xxxx
    buildToolsVersion '27.0.3'
    //xxxxx
}
  • 1
  • 2
  • 3
  • 4
  • 5

这里需要注意,如果项目本身还依赖其他lib,也要记得修改对应的build.gradle 
重新build,正常

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值