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

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

问题描述

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

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

指定的 Android SDK Build Tools 版本 (26.0.0) 被忽略,因为它低于 Android Gradle 的最低支持版本 (26.0.2)插件 3.0.0.

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 构建工具 26.0.2.

Android SDK Build Tools 26.0.2 will be used.

要取消此警告,请从您的 build.gradle 文件,作为 Android Gradle 插件的每个版本现在有一个默认版本的构建工具.

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.

问题在于,因为这些是具有 buildToolsVersion '26.0.0' 的第三方/供应商模块,我无法在不分叉每个子模块的情况下修改它们的 build.gradle.

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.

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

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

推荐答案

这里,如果您指的是我以前的回答 这里是更新.1. 2018 年之后 Compile 将从依赖项中移除.

Here if you are referring to my previous answers Here is an Update. 1. Compile would be removed from the dependencies after 2018.

新版本构建 Gradle 可用.

a new version build Gradle is available.

使用上述内容可以帮助您解决错误.2018 年 3 月以后工作的开发人员需要它.此外,可能需要 maven 更新.以上所有答案都不适用于 Android Studio 3.1.因此,如果您使用的是 3.1,则需要更改上面的代码块.另请参阅我用实现替换了编译.

Use the above-noted stuff it will help you to resolve the errors. It is needed for the developers who are working after March 2018. Also, maven update might be needed. All above answers will not work on the Android Studio 3.1. Hence Above code block is needed to be changed if you are using 3.1. See also I replaced compile by implementation.

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

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