Android Studio 编译错误 Received close_notify during handshake解决

今天开始远程办公了,打工工程怎么也编译不过报错“Received close_notify during handshake”,如下图
在这里插入图片描述
想起年前也遇到过类似的错误,貌似是jcenter里面的东西下载不了引起的,所以找了一下之前的工程把配置拷贝过来,果然OK了,主要修改如下

修改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'}
 } 
}

Android Studio 编译错误 Received close_notify during handshake解决_第1张图片

你可能感兴趣的:(Android)