Android Architecture Components 下载依赖失败
来源:互联网 发布:html表白墙源码 编辑:程序博客网 时间:2024/05/25 18:11
最近想要 研究####Android Architecture Components 奈何本地的gradle一直拉不下源码,尝试切换到云服务器编译,依然落不下代码 提示错误
FAILURE: Build failed with an exception.* What went wrong:A problem occurred configuring project ':app'.> Could not resolve all dependencies for configuration ':app:_debugApkCopy'. > Could not resolve android.arch.persistence.room:runtime:1.0.0-alpha3. Required by: project :app > Could not resolve android.arch.persistence.room:runtime:1.0.0-alpha3. > Could not get resource 'https://maven.google.com/android/arch/persistence/room/runtime/1.0.0-alpha3/runtime-1.0.0-alpha3.pom'. > Could not HEAD 'https://maven.google.com/android/arch/persistence/room/runtime/1.0.0-alpha3/runtime-1.0.0-alpha3.pom'. > Connect to maven.google.com:443 [maven.google.com/216.58.200.46] failed: Connection timed out: connect > Could not resolve android.arch.lifecycle:common:1.0.0-alpha3. Required by: project :app > android.arch.lifecycle:runtime:1.0.0-alpha3 project :app > android.arch.lifecycle:extensions:1.0.0-alpha3 > Could not resolve android.arch.lifecycle:common:1.0.0-alpha3. > Could not get resource 'https://maven.google.com/android/arch/lifecycle/common/1.0.0-alpha3/common-1.0.0-alpha3.pom'. > Could not HEAD 'https://maven.google.com/android/arch/lifecycle/common/1.0.0-alpha3/common-1.0.0-alpha3.pom'. > Connect to maven.google.com:443 [maven.google.com/216.58.200.46] failed: Connection timed out: connect
思来想去,还是没找到原因,本身网络是自带翻墙梯子的,后来看到很多人在Google issue提问题,也是无法下载依赖库
后来尝试翻看 https://developer.android.com/studio/build/dependencies.html 找到了答案,Google 建议将
将 https://maven.google.com
替换为 https://dl.google.com/dl/android/maven2/
答案解析 https://developer.android.com/studio/build/dependencies.html
repositories { maven { url 'https://maven.google.com' // Alternative URL is 'https://dl.google.com/dl/android/maven2/' }}
阅读全文
0 0
- Android Architecture Components 下载依赖失败
- Android Architecture Components 下载依赖失败
- Android Architecture Components
- 浅谈Android Architecture Components
- 【译】Android Architecture Components
- Android Architecture Components(1)
- Android Architecture Components(2)
- Android Architecture Components(3)
- Android Architecture Components+MVP 实战
- Android 添加Google官方推出应用架构Architecture Components 的依赖
- Android Architecture Components 部分源码代码分析
- 理解Android Architecture Components系列(一)
- Android Architecture Component之Lifecycle-Aware Components
- Android Architecture Components使用介绍(一)
- [翻译]Android 4.4 Graphic Architecture and it's components
- Android官方应用程序架构设置指南--Architecture Components
- 基于Android Architecture Components的应用架构指南
- Android Architecture Components(Google 官方框架库初探)
- React-Native学习之嵌入Android原生项目
- mybatis9大练习
- Spring事务管理——回滚(rollback-for)控制
- 判断代理是否实现某种方法
- 前后台防止表单重复提交的方法
- Android Architecture Components 下载依赖失败
- Xcode 创建.a和framework静态库
- 日常使用 Git 的 19 个建议
- zookeeper使用(三):项目中zookeeper的配置 和 zookeeper C API的使用
- hdu 5927 树形dp
- Ubuntu下安装MongoDB
- js判断一个字符串是否包含一个子串的方法
- 控制控件随手指移动
- springmvc常用注解标签详解