返回> 网站首页 

android studio gradle配置国内源

yoours2024-04-11 10:22:15 阅读 2350

简介一边听听音乐,一边写写文章。

新版本android studio在settings.gradle文件中修改,添加如下:

// 阿里的maven镜像

maven { url "https://maven.aliyun.com/repository/jcenter" }

maven { url "https://maven.aliyun.com/nexus/content/groups/public/" }

maven { url "https://maven.aliyun.com/repository/google" }

maven { url "https://maven.aliyun.com/repository/public" }

maven { url "https://maven.aliyun.com/repository/gradle-plugin" }

maven { url "https://maven.aliyun.com/repository/releases" }

maven { url "https://maven.aliyun.com/repository/central" }

maven { url "https://maven.aliyun.com/repository/gradle" }

// 官方

maven { url "https://repo.gradle.org/gradle/libs-release" }

// 清华大学的maven镜像

maven { url "https://mirrors.tuna.tsinghua.edu.cn/gradle" }

//腾讯云

maven { url "https://mirrors.cloud.tencent.com/repository/jcenter" }

maven { url "https://mirrors.cloud.tencent.com/gradle/" }

//华为云

maven { url "https://mirrors.huaweicloud.com/repository/maven/" }

maven { url "https://developer.huawei.com/repo/" }


// 系统默认

gradlePluginPortal()

google()

mavenCentral()

jcenter()


微信小程序扫码登陆

文章评论

2350人参与,0条评论