build.gradle为啥有两repositories和dependencies
buildscript {
repositories {
maven {
url "http://maven.oa.com/nexus/content/groups/androidbuild/"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0'
}
}
repositories {
maven {
url "http://maven.oa.com/nexus/content/groups/androidbuild/"
}
}
dependencies {
compile fileTree(include: '*.jar', dir: 'libs')
// ...
}
buildscript里的表示插件构建脚本自己依赖的,根层的表示该module所依赖的
##