Could not install Gradle distribution from 'http://services.gradle.org/distributions/gradle-xx-all

若在导入他人工程是报此错误,请在build.gradle文件中将编译版本修改为自己新建工程的版本,如将下图所示的1.3.0修改为1.5.0

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.3.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

你可能感兴趣的:(Android)