buildscript {
repositories {
google()
mavenCentral() //注意下这个顺序,jcenter()放到最下面
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
mavenCentral() //注意下这个顺序,放到最下面
jcenter()
}
}
网友评论