我正在尝试设置Android Studio,但是当我点击构建/运行时,我收到错误:
Error:org.gradle.tooling.GradleConnectionException: Could not execute build using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.10-all.zip'.: Could not execute build using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.10-all.zip'.
在gradle设置中,我有
路径:C:/gradle-1.10/bin
但界面显示' Gradle位置不正确'。有什么建议有什么不对吗?谢谢!
答案 0 :(得分:0)
您可以尝试在build.gradle文件中添加Wrapper:
task wrapper(type: Wrapper) {
gradleVersion = '1.10'
}
然后,从命令行运行build命令:
./gradlew build
您也可以点击此链接作为参考:http://spring.io/guides/gs/gradle-android/