我已安装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'.
如何清除此错误
答案 0 :(得分:0)
将文件“ gradle / wrapper / gradle-wrapper.properties”修改为
distributionUrl=https\://services.gradle.org/distributions/gradle-2.6-all.zip