buildscript{repositories{maven{url'https://maven.aliyun.com/repository/google/'}maven{url'https://maven.aliyun.com/repository/jcenter/'}}dependencies{classpath'com.android.tools.build:gradle:2.2.3'// 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/'}}}
allprojects{repositories{defALIYUN_REPOSITORY_URL='https://maven.aliyun.com/repository/public/'defALIYUN_JCENTER_URL='https://maven.aliyun.com/repository/jcenter/'defALIYUN_GOOGLE_URL='https://maven.aliyun.com/repository/google/'defALIYUN_GRADLE_PLUGIN_URL='https://maven.aliyun.com/repository/gradle-plugin/'all{ArtifactRepositoryrepo->if(repoinstanceofMavenArtifactRepository){defurl=repo.url.toString()if(url.startsWith('https://repo1.maven.org/maven2/')){project.logger.lifecycle"Repository ${repo.url} replaced by $ALIYUN_REPOSITORY_URL."removerepo}if(url.startsWith('https://jcenter.bintray.com/')){project.logger.lifecycle"Repository ${repo.url} replaced by $ALIYUN_JCENTER_URL."removerepo}if(url.startsWith('https://dl.google.com/dl/android/maven2/')){project.logger.lifecycle"Repository ${repo.url} replaced by $ALIYUN_GOOGLE_URL."removerepo}if(url.startsWith('https://plugins.gradle.org/m2/')){project.logger.lifecycle"Repository ${repo.url} replaced by $ALIYUN_GRADLE_PLUGIN_URL."removerepo}}}maven{urlALIYUN_REPOSITORY_URL}maven{urlALIYUN_JCENTER_URL}maven{urlALIYUN_GOOGLE_URL}maven{urlALIYUN_GRADLE_PLUGIN_URL}}}