AndroidStudio出现编译错误 Received close_notify during handshake解决方法

1 问题:

在第一次使用AndroidStudio新建工程时编译不通过,提示“Received close_notify during handshake”错误

2 原因:

jcenter里面的一些需要的包下载不了引起的

3 解决办法:修改build.gradle文件如下

修改build.gradle
buildscript{
    repositories{
        //jcenter() //把这里注释掉,换成阿里的源
        maven{ url'http://maven.aliyun.com/nexus/content/groups/public/' }
        maven{ url'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
        google()
 }
}
allprojects{
    repositories{
        //jcenter() //把这里注释掉,换成阿里的源
        maven{ url'http://maven.aliyun.com/nexus/content/groups/public/' }
        maven{ url'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
 } 
}

4 重新 try agian 解决

你可能感兴趣的:(安卓开发)