本文介绍了错误“最低支持的Gradle版本为5.1.1".当前版本为4.4.1".更新后的android studio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将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:

然后我使用下一个命令来获取更多详细信息:

Then I use the next command to get more details:

  ./gradlwe build --warning-mode=all

然后我收到下一条消息:

And I get the next message:

当我编辑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 finally 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 07:11