我将 android studio 从 3.3 更新到 3.4 版本,安装并执行 ./gradlew lint 后出现下一个错误:
I updated android studio from 3.3 to 3.4 version and after install and do ./gradlew lint I am getting the next error:
此版本中使用了已弃用的 Gradle 功能,使其与 Gradle 6.0 不兼容.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
然后我使用下一个命令来获取更多详细信息:
Then I use the next command to get more details:
./gradlwe build --warning-mode=all
我收到下一条消息:
无法应用插件 [id 'com.android.application']
Failed to apply plugin [id 'com.android.application']
支持的最低 Gradle 版本为 5.1.1.当前版本是 4.4.1.如果使用 gradle 包装器,请尝试编辑 .gradle/daemon/4.4.1/gradle/wrapper/gradle-wrapper.properties 中的 distributionUrl到 gradle-5.1.1-all.zip
Minimum supported Gradle version is 5.1.1. Current version is 4.4.1. If using the gradle wrapper, try editing the distributionUrl in .gradle/daemon/4.4.1/gradle/wrapper/gradle-wrapper.properties to gradle-5.1.1-all.zip
当我编辑我的 gradle-wrapper.properties 时,我看到更改已经完成,即distributionUrl 的版本已经是 gradle-5.1.1.-all.zip
And when I edited my gradle-wrapper.properties, I see that the changes were already done, I.E. the version of the distributionUrl already was gradle-5.1.1.-all.zip
知道如何解决这个问题吗?
Any idea that how can resolve this?
最后,我能够解决这个问题,删除 ~/.gradle/wrapper/dists 中最旧版本的文件夹并离开只有 gradle-5.1.1-all
Finally, I was able to solve this dropping the folders of the oldest version in ~/.gradle/wrapper/dists and leave only the gradle-5.1.1-all
这篇关于错误“支持的最低 Gradle 版本为 5.1.1.当前版本是 4.4.1"更新 android studio 后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
更新到 Android Build Tools 25.1.6 GCM/FCM 后出现 IncompIncompatibleClassChangeError after updating to Android Build Tools 25.1.6 GCM / FCM(更新到 Android Build Tools 25.1.6 GCM/FCM 后出现 Incompatible
如何在 gradle 中获取当前风味How to get current flavor in gradle(如何在 gradle 中获取当前风味)
如何修复“意外元素<查询>在“清单How to fix quot;unexpected element lt;queriesgt; found in lt;manifestgt;quot; error?(如何修复“意外元素lt;查询gt;在“清单中找到错误
基于 Android Gradle 中多风味库的多风味应用Multi flavor app based on multi flavor library in Android Gradle(基于 Android Gradle 中多风味库的多风味应用)
Android 依赖在编译和运行时有不同的版本Android dependency has different version for the compile and runtime(Android 依赖在编译和运行时有不同的版本)
本地 aar 库的传递依赖Transitive dependencies for local aar library(本地 aar 库的传递依赖)