1. 程式人生 > >could not find com.android.tools.build:gradle:2.2.3

could not find com.android.tools.build:gradle:2.2.3

將專案的 build.gradle中的

buildscript {
    repositories {
        mavenCentral()
    }
    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
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
} } allprojects { repositories { jcenter() } } task clean(type: Delete) { delete rootProject.buildDir }
改為:
buildscript {
    repositories {
        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 classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8' } } allprojects { repositories { jcenter() } } task clean(type: Delete) { delete rootProject.buildDir }
隨後,Android 會對一些內容進行update ,即可解決。