Download https //jcenter.bintray.com/org/apache/commons/commons-parent/11/commons-parent-11.pom
BUILD FAILED
Total time 1 mins 55.436 secs
FAILURE Build failed with an exception.
出了什么问题?
A problem occurred configuring root project native.
Could not resolve all dependencies for configuration classpath .
Could not download artifact com.android.tools.build gradle 0.14.4 gradle.jar
Could not GET https //jcenter.bintray.com/com/android/tools/build/gradle/0.14.4/gradle-0.14.4.jar
Connection to https //d29vzk4ow07wi7.cloudfront.net refused
答案 0 :(得分:0)
这是因为服务器没有Internet访问权限来下载gradle文件。
您需要授予服务器Internet访问权限以获取gradle文件,或者手动下载它们,将其放在HTTP服务器上,然后将每个应用程序的gradle-wrapper.properties指向文件位置。
也可以尝试指向本地目录,但是我不确定是否可以。
gradle-wrapper.properties
distributionUrl=https\://services.gradle.org/distributions/gradle-2.1-all.zip