使用 jitpack.io 仓库 提示错误

原来配置
maven { url "http://jitpack.io" }
经过多天查找问题 修改 tls也不行 总之折腾啊
后来无意发现 增加一个www问题居然解决了
maven { url "http://www.jitpack.io" }
感叹java开发的地雷天坑有多么令人无语
def addRepos(RepositoryHandler handler) {
handler.jcenter()
handler.google()
handler.mavenCentral()
//jitpack.io 添加一个www
handler.maven { url "http://www.jitpack.io" }
handler.maven { url "https://dl.bintray.com/umsdk/release" }
//Add the aliyun repository
handler.maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
//Add the Local repository
handler.maven{ url 'LocalRepository'}
}

本文分享了一位开发者在使用Jitpack.io仓库时遇到的配置错误,并详细记录了从发现问题到解决问题的过程。通过简单地在URL前添加'www.',成功解决了Gradle构建中的依赖问题。
1万+

被折叠的 条评论
为什么被折叠?



