jitpack.io 无法访问或下载依赖库

之前的写法:

allprojects {
    repositories {
        maven { url "https://jitpack.io" }
    }
}

修改后的写法(添加www.):

allprojects {
    repositories {
        maven { url "https://www.jitpack.io" }
    }
}

参考:
https://github.com/jitpack/jitpack.io/issues/4002
https://stackoverflow.com/questions/50389211/android-studio-maven-url-https-jitpack-io-cant-download

你可能感兴趣的:(代码块,jitpack,android,jitpack.io)