Could not get resource ‘https://registry-mirrors.avlyun.org/repository/maven-releases/com/avl/module

博客内容讲述了在执行`./gradlew build`时遇到的依赖下载失败问题,主要是由于代理设置导致的。解决方案是关闭全局Gradle代理,注释掉~/.gradle/gradle.properties文件中的代理配置。这个问题影响了com.avl.modules库的lib_ctxmgr版本0.1.1的获取,从而导致构建失败。
摘要由CSDN通过智能技术生成

./gradlew build编译时出现一些下载问题

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:lintVitalRelease'.
> Could not resolve all artifacts for configuration ':app:debugCompileClasspath'.
   > Could not resolve com.avl.modules:lib_ctxmgr:0.1.1.
     Required by:
         project :app
      > Could not resolve com.avl.modules:lib_ctxmgr:0.1.1.
         > Could not get resource 'https://registry-mirrors.avlyun.org/repository/maven-releases/com/avl/modules/lib_ctxmgr/0.1.1/lib_ctxmgr-0.1.1.pom'.
            > Could not GET 'https://registry-mirrors.avlyun.org/repository/maven-releases/com/avl/modules/lib_ctxmgr/0.1.1/lib_ctxmgr-0.1.1.pom'.
               > Remote host closed connection during handshake

发现是代理问题,需要把全局的gradlew代理关掉,把~/.gradle/gradle.properties文件的代理代码注释掉

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值