简体   繁体   English

当我执行 gradle lint 时出现错误“此版本中使用了已弃用的 Gradle 功能,使其与 Gradle 6.0 不兼容”

[英]Error "Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0" When I do gradle lint

Hello I am trying execute ./gradlew lint , and I am getting the following message:您好,我正在尝试执行./gradlew lint ,并且收到以下消息:

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.此版本中使用了已弃用的 Gradle 功能,使其与 Gradle 6.0 不兼容。

I did remove all gradles from .gradle/daemon, but gradlew download the version 4.4.1.我确实从 .gradle/daemon 中删除了所有 gradle,但是 gradlew 下载了 4.4.1 版。

The question is how can update to the 6.0.0 or how can solve this?问题是如何更新到 6.0.0 或者如何解决这个问题?

Thanks谢谢

I check this Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0 , but the answers of this doesn't work for me.我检查了此版本中使用了已弃用的 Gradle 功能,使其与 Gradle 5.0 不兼容,但此答案对我不起作用。

In gradle/wrapper/gradle-wrapper.properties I have the followinggradle/wrapper/gradle-wrapper.properties我有以下内容

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

But in http://services.gradle.org/distributions/ the last version is 5.4.1.但是在http://services.gradle.org/distributions/ 中的最后一个版本是 5.4.1。

This message indicates the usage of APIs that are considered deprecated in the Gradle 5.x line and which will be removed in Gradle 6.x.此消息指示使用在 Gradle 5.x 行中被视为已弃用的 API,并将在 Gradle 6.x 中删除。

Upgrading to Gradle 6.x (not yet released at this time) will not make the message go away, instead it will most likely break your build.升级到 Gradle 6.x(此时尚未发布)不会使该消息消失,相反,它很可能会破坏您的构建。

The way to make such warning disappear is to track down the usages, replacing them with the new APIs recommended.消除此类警告的方法是跟踪使用情况,将其替换为推荐的新 API。

As for tracking them down, use the --warning-mode=all flag when invoking Gradle to have details about the deprecations.至于跟踪它们,请在调用 Gradle 时使用--warning-mode=all标志以获取有关弃用的详细信息。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Unity Android 构建错误 - 此构建中使用了已弃用的 Gradle 功能,使其与 Gradle 6.0 不兼容 - Error on Unity Android Build - Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0 此版本中使用了已弃用的 Gradle 功能,使其与 Gradle 6 不兼容 - Deprecated Gradle features were used in this build, making it incompatible with Gradle 6 此版本中使用了已弃用的 Gradle 功能,使其与 Gradle 5.0 不兼容 - Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0 此版本中使用了已弃用的 Gradle 功能,使其与 Gradle X 不兼容 - Deprecated Gradle features were used in this build, making it incompatible with Gradle X 此版本中使用了已弃用的 Gradle 功能,使其与 Gradle 6.0 不兼容。 - 反应原生 - Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0. - React native React-Native Android Studio 项目构建失败,显示“此构建中使用了弃用的 Gradle 功能,使其与 Gradle 6.0 不兼容。” - React-Native Android Studio Project Build failed showing "Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0." 更新后无法构建 android 项目,错误:此构建中使用了已弃用的 Gradle 功能,使其与 Gradle 5.0 不兼容 - Cannot build android project after updating, error: Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0 “此版本中使用了已弃用的 Gradle 功能,使其与 Gradle 7.0 不兼容。” -反应原生 - "Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0." -REACT-NATIVE Task:app:mergeReleaseResources FAILED, Deprecated Gradle features used in this build, 使其与 Gradle 7.0 不兼容 - Task :app:mergeReleaseResources FAILED, Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0 Gitlab CI / CD显示在此版本中使用了不推荐使用的Gradle功能,使其与Gradle 5.0不兼容 - Gitlab CI/CD Show Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM