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

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

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工具版本,不能混用app

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

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

这里须要注意,若是项目自己还依赖其余lib,也要记得修改对应的build.gradle 
从新build,正常gradle

相关文章
相关标签/搜索