android studio gradle:build model执行时间太久
每次新建android项目打开后都需要下载gradle配置国内gradle仓库,在项目的build.gralde文件中添加/修改如下配置(下面配置加上了阿里云镜像仓库)allprojects {repositories {mavenLocal()maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }maven {
·
每次新建android项目打开后都需要下载gradle
配置国内gradle仓库,在项目的build.gralde文件中添加/修改如下配置(下面配置加上了阿里云镜像仓库)
allprojects {
repositories {
jcenter()
google()
maven { url "https://jitpack.io" }
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter' }
maven { url 'https://repo.spring.io/milestone' }
}
}
更多推荐
所有评论(0)