国内镜像源(记录)

218 阅读1分钟

镜像源地址(统计)

商业镜像站
  1. 阿里开源软件镜像站
https://developer.aliyun.com/mirror/
  1. 腾讯开源软件镜像站
公网访问地址:
http://mirrors.cloud.tencent.com/
http://mirrors.tencent.com/
内网访问地址:
http://mirrors.tencentyun.com/
  1. 华为开源软件镜像站
https://mirrors.huaweicloud.com
国内大学镜像站

清华大学开源软件镜像站

https://mirrors.tuna.tsinghua.edu.cn 自动选择
https://mirrors6.tuna.tsinghua.edu.cn 只解析 IPv6
https://mirrors4.tuna.tsinghua.edu.cn 只解析 IPv4

中国科学技术大学开源镜像站

https://mirrors.ustc.edu.cn/

Android开发使用镜像源

settings.gradle.kts 更换阿里云镜像源

pluginManagement {  
    repositories {  
        // 改为阿里云的镜像地址 
        maven ("https://maven.aliyun.com/repository/central")
        maven ("https://maven.aliyun.com/repository/jcenter")
        maven ("https://maven.aliyun.com/repository/google")
        maven ("https://maven.aliyun.com/repository/gradle-plugin")
        maven ("https://maven.aliyun.com/repository/public")
        maven ("https://jitpack.io")
        google()  
        mavenCentral()  
        gradlePluginPortal()  
    }  
}  
dependencyResolutionManagement {  
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)  
    repositories {  
        // 改为阿里云的镜像地址  
        maven ("https://maven.aliyun.com/repository/central")
        maven ("https://maven.aliyun.com/repository/jcenter")
        maven ("https://maven.aliyun.com/repository/google")
        maven ("https://maven.aliyun.com/repository/gradle-plugin")
        maven ("https://maven.aliyun.com/repository/public")
        maven ("https://jitpack.io") 
        google()  
        mavenCentral()  
    }  
}  
  
rootProject.name = "MirrorDo"  
include(":app")