Enable Gradle 'offline mode' and sync project

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 sync project)