Android Studio新建项目Caused by: java.io.EOFException: SSL peer shut down incorrectly

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
}
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容