美文网首页
Enable Gradle 'offline mode' and

Enable Gradle 'offline mode' and

作者: CarlosLynn | 来源:发表于2019-03-21 18:02 被阅读0次
    Could not HEAD 'https://jcenter.bintray.com/com/growingio/android/vds-gradle-plugin/1.1.1/vds-gradle-plugin-1.1.1.pom'. Received status code 502 from server: Bad Gateway
    Enable Gradle 'offline mode' and sync project
    

    解决办法:

    配置1:

    allprojects {
        repositories {
            mavenCentral()
            jcenter()
            maven { url "https://jitpack.io" }
            google()
        }
    }
    

    配置2:

    buildscript {
        repositories {
            google()
            jcenter()
            jcenter { url "http://jcenter.bintray.com/" }//关键
            maven { url 'https://maven.fabric.io/public' }//关键
            maven { url 'https://jitpack.io' }//关键
            maven { url 'https://maven.fabric.io/public' }//关键
            maven { url "https://maven.google.com" }//关键
            mavenCentral()
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:3.0.0'
            classpath 'com.bugtags.library:bugtags-gradle:latest.integration'
            classpath 'com.growingio.android:vds-gradle-plugin:1.1.1'
        }
    }
    

    相关文章

      网友评论

          本文标题:Enable Gradle 'offline mode' and

          本文链接:https://www.haomeiwen.com/subject/yhbcvqtx.html