Could not find com.android.tools.build:gradle:3.0.1

 

buildscript {
    repositories {
        jcenter()
     }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.1'
 
        // NOTE: Do not place your application dependencies here; they belong
        // in the inpidual module build.gradle files
    }
}
 
 
 
添加
buildscript {
    repositories {
        jcenter()
        maven {
            url 'https://maven.google.com'
        }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.1'
 
        // NOTE: Do not place your application dependencies here; they belong
        // in the inpidual module build.gradle files
    }
}
posted @ 2018-01-25 17:52  mogic  阅读(7177)  评论(0编辑  收藏  举报