关于The specified Android SDK Build Tools version (26.0.2) is ignored, as it is below the minimum...
2023-09-27 14:24:02 时间
今天将项目迁移到另一台笔记本,进行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,正常
相关文章
- 【软键盘】Android开发之隐藏软键盘的方式
- 怎么将Android的API demo导入到Eclipse工作区中
- 2021最新Android开发者学习路线,震撼来袭免费下载!
- Android性能优化常见问题,已开源
- Android Studio 修改注释模板中的${USER}变量以及修改默认的头部注释
- 如何根据ua判断ios、android、ipad?如何判断app版本
- Android源码中final关键字的用法及final,finally,finalize的区别
- Android studio更新后出现警告:Warning:The `android.dexOptions.incremental` property is deprecated and it has
- 《React-Native系列》35、 RN在Android下支持gif的另一种方案
- android搭建环境错误 daemon not running. starting it now on port 5037 ADB server didn't ACK
- 我的Android进阶之旅------>Android关于TextWatcher的初步了解