“指定的Android SDK构建工具版本(26.0.0)将被忽略......” [英] "The specified Android SDK Build Tools version (26.0.0) is ignored..."

查看:2649
本文介绍了“指定的Android SDK构建工具版本(26.0.0)将被忽略......”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Android Studio 3中,我看到了这个问题:
$ b


指定的Android SDK构建工具版本(26.0.0)是忽略,因为
低于Android Gradle
Plugin 3.0.0的最低支持版本(26.0.2)。



Android SDK构建工具26.0.2将被使用。



要取消这个警告,从
build.gradle文件中删除buildToolsVersion '26.0.0',因为每个版本的Android Gradle插件
现在有一个默认版本的构建工具。


问题在于,因为这些是第三-party / vendor模块,其中包含 buildToolsVersion '26 .0.0',我无法修改它们的build.gradle而不分叉每个子模块。



有没有办法设置全局的 buildToolsVersion 来覆盖所有的子build.gradles?

解决方案

open build.gradle(Module:app)



更改 buildToolsVersion to buildToolsVersion26.0.2



更改 compile'c​​om.android.support:appcompat to compile'c​​om.android.support:appcompat-v7:26.0.2'


In Android Studio 3, I'm seeing this issue:

The specified Android SDK Build Tools version (26.0.0) is ignored, as it is below the minimum supported version (26.0.2) for Android Gradle Plugin 3.0.0.

Android SDK Build Tools 26.0.2 will be used.

To suppress this warning, remove "buildToolsVersion '26.0.0'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

The problem is that because these are third-party/vendor modules that have buildToolsVersion '26.0.0', I can't modify their build.gradle without forking each submodule.

Is there a way to set a global buildToolsVersion that will override all the sub build.gradles?

解决方案

open build.gradle(Module:app)

change buildToolsVersion to buildToolsVersion "26.0.2"

change compile 'com.android.support:appcompat to compile 'com.android.support:appcompat-v7:26.0.2'

这篇关于“指定的Android SDK构建工具版本(26.0.0)将被忽略......”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆