distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zipAs I've been using classpath 'com.android.tools.build:gradle:+'In the build.gradle file, I got the following error since gradle version 2.10 has been released.The error is :at first it looks easy to solve by the guide, but when I'd done the change, I got the error again.I'm using Android Studio 2.0 with the latest Android SDK Tools 24.4.1 and Android SDK Build Tools 23.0.2I've even tried to download Gradle 2.10 and put it manually on android-studio\gradle\ folder, but no luck.Any help would be appreciated. 解决方案 You need to change File > Settings > Builds,Execution,Deployment > Build Tools > Gradle >Gradle home pathOn Mac OS, change the path in Android Studio > Preferences > Builds,Execution,Deployment > Build Tools > Gradle >Gradle homeOr set Use default gradle wrapper and edit Project\gradle\wrapper\gradle-wrapper.properties files field distributionUrl like thisdistributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip 这篇关于“需要 Gradle 2.10 版."错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-03 20:42
查看更多