云炬Android开发笔记 使用新版本Android studio快速Build低版本项目的仓库代码(标红部分)

buildscript {
    repositories {
        maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}  //使用阿里云镜像替换原有的jecter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.2'
        classpath 'com.jakewharton:butterknife-gradle-plugin:8.5.1'
        classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'} //使用阿里云镜像替换原有的jecter()
        maven { url 'https://www.jitpack.io' }
        maven { url 'https://maven.google.com' }
        maven { url "https://dl.gooqle.com/dl/android/maven2/"}
    }
}
task clean(type: Delete) {
    delete rootProject.buildDir
}

你可能感兴趣的:(Android)