gpt4 book ai didi

android - 从github导入项目时发生Gradle错误

转载 作者:行者123 更新时间:2023-12-03 06:32:37 26 4
gpt4 key购买 nike

我已安装android studio 3.4版本和gradle版本5.1

从github https://github.com/AkashBang/NavigationView导入项目时出现以下错误
Support for builds using Gradle older than 2.6 was deprecated and will be removed in 5.0. You are currently using Gradle version 2.4. You should upgrade your Gradle build to use Gradle 2.6 or later.
ERROR: Could not run build action using Gradle distribution 'https://services.gradle.org/distributions/gradle-2.4-all.zip'.

如何清除此错误

最佳答案

将文件'gradle / wrapper / gradle-wrapper.properties'修改为

distributionUrl=https\://services.gradle.org/distributions/gradle-2.6-all.zip

关于android - 从github导入项目时发生Gradle错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55765044/

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