0
点赞
收藏
分享

微信扫一扫

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

凛冬已至夏日未远 2022-03-17 阅读 133
mavengradle

这是因为访问不到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

举报

相关推荐

0 条评论