美文网首页
Android Studio新建项目Caused by: jav

Android Studio新建项目Caused by: jav

作者: 哆啦A猛 | 来源:发表于2021-05-19 11:02 被阅读0次

    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
    }
    

    相关文章

      网友评论

          本文标题:Android Studio新建项目Caused by: jav

          本文链接:https://www.haomeiwen.com/subject/kgfpjltx.html