知识库

个人知识管理

用户工具

站点工具


安卓开发:加速安卓构建开发的方法

加速安卓构建开发的方法

配置阿里云镜像地址加速依赖下载

// Top-level build file where you can add configuration options common to all sub-projects/modules.
 
buildscript {
    repositories {
        maven { url 'https://maven.aliyun.com/repository/google' }
        maven { url 'https://maven.aliyun.com/repository/jcenter' }
        // google()
        // jcenter()
 
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.4.1'
 
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}
 
allprojects {
    repositories {
        maven { url 'https://maven.aliyun.com/repository/google' }
        maven { url 'https://maven.aliyun.com/repository/jcenter' }
        // google()
        // jcenter()
 
    }
}
 
task clean(type: Delete) {
    delete rootProject.buildDir
}

参考引用

安卓开发/加速安卓构建开发的方法.txt · 最后更改: 2019/09/11 00:49 (外部编辑)