AndroidStudio各種國(guó)內(nèi)鏡像設(shè)置

gradle-wappter配置

#Sat Feb 18 23:41:02 GMT+08:00 2023
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://mirrors.cloud.tencent.com/gradle/gradle-7.5-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME

gradle-plugin和gradle-repository配置

pluginManagement {
    repositories {
        maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
        maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter' }
        maven { url 'https://maven.aliyun.com/nexus/content/repositories/google/' }
        google()
        mavenCentral()
        gradlePluginPortal()
    }
}
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
        maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter' }
        maven { url 'https://maven.aliyun.com/nexus/content/repositories/google/' }
        google()
        mavenCentral()
        maven { url "https://jitpack.io" }
    }
}

Android-sdk相關(guān)內(nèi)容下載配置

阿里云:
https://mirrors.aliyun.com/android.googlesource.com/

騰訊:
https://mirrors.cloud.tencent.com/AndroidSDK/

配置辦法:


image.png

國(guó)內(nèi)鏡像地址列表

  1. 阿里云官方鏡像站https://developer.aliyun.com/mirror/
  2. 華為開(kāi)源鏡像站https://mirrors.huaweicloud.com/home
  3. 網(wǎng)易開(kāi)源鏡像站http://mirrors.163.com/
  4. 騰訊開(kāi)源鏡像站https://mirrors.cloud.tencent.com/
  5. 清華大學(xué)開(kāi)源軟件鏡像站https://mirrors.tuna.tsinghua.edu.cn/
  6. 中國(guó)科學(xué)技術(shù)大學(xué)Mirrorhttps://mirrors.ustc.edu.cn/
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

友情鏈接更多精彩內(nèi)容