Android Studio配置中“Gradle sync failed: SSL peer shut down incorrectly”或者“Read timed out”解决办法
出现SSL peer shut down incorrectly或者Read timed out的问题
解决方法:使用阿里镜像或者gradle离线build
解决方式1:
打开工程目录下的build.gradle文件,不是app下的build.gradle
修改build.gradle文件成如下:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
//google()
//jcenter()
maven { url 'https://maven.aliyun.com/repository/public/' }
maven { url 'https://maven.aliyun.com/repository/google/'}
maven { url 'https://maven.aliyun.com/repository/jcenter/'}
mavenLocal()
mavenCe