android - React 本机 android 构建失败,任务 ':app:lintVitalRelease' 执行失败。无法下载 groovy-all-2..4.15.jar
问题描述
使用 AWS CodeBuild 的 Android 构建失败并出现以下错误:
Execution failed for task ':app:lintVitalRelease'.
> Could not resolve all files for configuration ':app:lintClassPath'.
> Could not download groovy-all-2.4.15.jar (org.codehaus.groovy:groovy-all:2.4.15)
> Could not get resource 'https://repo.maven.apache.org/maven2/org/codehaus/groovy/groovy-all/2.4.15/groovy-all-2.4.15.jar'.
> Could not GET 'https://repo.maven.apache.org/maven2/org/codehaus/groovy/groovy-all/2.4.15/groovy-all-2.4.15.jar'.
> Connection reset
该构建在我的本地机器上运行良好。上述错误仅在尝试使用 AWS CodeBuild 构建 apk 时发生。
如果这与jcenter shutdown 有关,如何解决?
解决方案
推荐阅读
- wpf - 带有绑定的 Button.LostFocus 上的 WPF 触发器
- .net - 使用 SSH.NET 响应交互式 shell 提示
- nginx - X-Forwarded-Proto 标头作为 http 发送,即使在 nginx 中将值设置为 https
- reactjs - Material UI - 如何在条件下禁用选择
- xcode - Xcode 12 beta 不支持 iOS 13.6 beta 配置
- python - python解析以星号开头和结尾的文本
- python-3.x - Pandas 中的数据框转换
- javascript - 如何在reactjs中制作这样的自定义单选按钮
- node.js - MongoDB 聚合与 Mongoose 虚拟
- multithreading - 为什么设置 requestTimeout 时 ColdFusion 页面不超时?