当前位置:   article > 正文

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

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
}

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/空白诗007/article/detail/795669
推荐阅读
相关标签
  

闽ICP备14008679号