报错Could not download groovy-all.jar 改国内镜像下载方法

报错:Could not download groovy-all.jar (org.codehaus.groovy:groovy-all:2.4.15)

报错信息如下
> Could not download groovy-all.jar (org.codehaus.groovy:groovy-all:2.4.15)
   > Could not get resource 'https://jcenter.bintray.com/org/codehaus/groovy/groovy-all/2.4.15/groovy-all-2.4.15.jar'.
      > Could not GET 'https://jcenter.bintray.com/org/codehaus/groovy/groovy-all/2.4.15/groovy-all-2.4.15.jar'.
         > Remote host closed connection during handshake

用国内的镜像的操作如下:

//google()
//jcenter()
maven { url 'https://maven.aliyun.com/repository/google'}
maven { url 'https://maven.aliyun.com/repository/jcenter'}
maven { url 'http://maven.aliyun.com/nexus/content/groups/public'}

将google、jcenter的镜像源改为阿里云的,更改 Project 的 build.gradle ,如图:

报错Could not download groovy-all.jar 改国内镜像下载方法_第1张图片

你可能感兴趣的:(Android,Studio,groovy,android)