问题描述
我将 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