如下图,各个仓库都是下载失败,网络是有oversea的访问的,不行,我给AndroidStudio网络代理到oversea也不能下载,就很奇怪,就像是AndroidStudio强行把网络访问给墙了
原来Settings.Gradle的配置如下,这几个代码仓库一般有oversea网络都是可以的
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
jcenter() // Warning: this repository is going to shut down soon
}
}
后面我没有办法只能再给它放到网络镜像去了,就像是AndroidStudio非得脱裤子放屁
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
jcenter() // Warning: this repository is going to shut down soon
maven { url 'https://developer.huawei.com/repo' }
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
maven { url 'https://maven.aliyun.com/repository/central' }
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://repo1.maven.org/maven2' }
}
}