【问题标题】:Gradle error while importing project from github从 github 导入项目时出现 Gradle 错误
【发布时间】:2019-04-19 16:43:13
【问题描述】:

我安装的是 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'.

如何清除此错误

【问题讨论】:

    标签: android gradle android-gradle-plugin


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 2019-04-10
      • 2014-10-27
      • 1970-01-01
      • 2015-04-24
      • 1970-01-01
      • 1970-01-01
      • 2021-06-05
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多