gpt4 book ai didi

android - 更新android studio后出现错误 "Minimum supported Gradle version is 5.1.1. Current version is 4.4.1"

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:01:47 25 4
gpt4 key购买 nike

我将 android studio 从 3.3 更新到 3.4 版本,安装后执行 ./gradlew lint 我收到下一个错误:

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.

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

  ./gradlwe build --warning-mode=all

然后我收到下一条消息:

Failed to apply plugin [id 'com.android.application']

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 时,我看到更改已经完成,I.E. distributionUrl 的版本已经是 gradle-5.1.1.-all.zip

知道如何解决这个问题吗?

最佳答案

您可以编辑 YOUR_APPLICATION_FOLDER/gradle/wrapper/gradle-wrapper.properties 并将最后一行更改为:distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zipAndroid Studio 将下载必要的库。

关于android - 更新android studio后出现错误 "Minimum supported Gradle version is 5.1.1. Current version is 4.4.1",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55782093/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com