“指定的Android SDK构建工具版本(26.0.0)将被忽略......” [英] "The specified Android SDK Build Tools version (26.0.0) is ignored..."
问题描述
$ 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'com.android.support:appcompat
to compile'com.android.support:appcompat-v7:26.0.2'$c$ c>
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屋!