Android Studio新建項(xiàng)目提示
Caused by: java.io.EOFException: SSL peer shut down incorrectly
Android Studio版本:4.2.1
compileSdkVersion 30
defaultConfig {
applicationId "com.eimageglobal.doctorclient"
minSdkVersion 23
targetSdkVersion 30
versionCode 1
versionName "1.0.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
修改Project的build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()//保持這個(gè)放在頂部
mavenCentral()
maven {
url "https://jitpack.io"
}
maven { url 'http://developer.huawei.com/repo' }
// 超級(jí)實(shí)用:某某影響,很多被墻敷燎,強(qiáng)烈推薦阿里云鏡像更新
maven {
url "http://maven.aliyun.com/nexus/content/groups/public/"
}
maven { url 'https://maven.fabric.io/public' }
jcenter()//保持這個(gè)放在底部
}
dependencies {
classpath "com.android.tools.build:gradle:4.2.1"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()//保持這個(gè)放在頂部
mavenCentral()
maven {
url "https://jitpack.io"
}
maven { url 'http://developer.huawei.com/repo' }
// 超級(jí)實(shí)用:某某影響贸辈,很多被墻,強(qiáng)烈推薦阿里云鏡像更新
maven {
url "http://maven.aliyun.com/nexus/content/groups/public/"
}
maven { url 'https://maven.fabric.io/public' }
jcenter()//保持這個(gè)放在底部
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}