AndroidStudio:Could not find com.android.tools.build:gradle:3.0.1.
buildscript {repositories {//加入以下两行google()maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }jcenter()}dependencies {classpath 'com.android.tools.build:gradle:3.0.1'// N..
·
buildscript {
repositories {
//加入以下两行
google()
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
//加入以下两行
google()
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
更多推荐
已为社区贡献3条内容
所有评论(0)