Android Studio新建项目提示
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()//保持这个放在顶部
mavenCentral()
maven {
url "https://jitpack.io"
}
maven { url 'http://developer.huawei.com/repo' }
// 超级实用:某某影响,很多被墙,强烈推荐阿里云镜像更新
maven {
url "http://maven.aliyun.com/nexus/content/groups/public/"
}
maven { url 'https://maven.fabric.io/public' }
jcenter()//保持这个放在底部
}
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()//保持这个放在顶部
mavenCentral()
maven {
url "https://jitpack.io"
}
maven { url 'http://developer.huawei.com/repo' }
// 超级实用:某某影响,很多被墙,强烈推荐阿里云镜像更新
maven {
url "http://maven.aliyun.com/nexus/content/groups/public/"
}
maven { url 'https://maven.fabric.io/public' }
jcenter()//保持这个放在底部
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
网友评论