Connect to maven.google.com:443 [maven.google.com] failed: Connection timed out: connect

这是因为访问不到maven.google.com了,请把maven的url换成阿里仓

buildscript {
    repositories {
        jcenter()
        maven {
            url 'https://maven.aliyun.com/repository/google'
            name 'Google'
        }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.6.1'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
        maven {
            url 'https://maven.aliyun.com/repository/google'
            name 'Google'
        }
    }
}

在这里插入图片描述
https://developer.aliyun.com/mvn/search

猜你喜欢

转载自blog.csdn.net/xiyangyang8110/article/details/123554739
今日推荐