[英]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 following在
gradle/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.