Could not resolve all dependencies for configuration ':XXX:_debugCompile'
2016-04-18 10:35
639 查看
报错提示:
Error:A problem occurred configuring project ‘:XXX’.Could not resolve all dependencies for configuration ‘:XXXXX:_debugCompile’.
Could not find com.X.X:X.
Searched in the following locations:
报错原因:
Gradle加载库文件失败解决办法:
自己的方案:由于自己关联的库文件是关联jcenter的,因此在对应module下的gradle文件中添加
repositories { jcenter() }
即可,倘若你的项目的依赖包是关联maven的,那么在对应module下的gradle文件中添加:
repositories { mavenCentral() }
最保险的是同时加:
repositories { jcenter() }
repositories { mavenCentral() }
其他人遇到问题的方案:
请点击这里
相关文章推荐
- 【Studio】Android Studio导入项目时的遇到问题(Re-download dependencies and sync project (requires network))
- 如何手动添加 Android Dependencies 包
- Maven中<dependencies>节点和<dependencyManagement>节点的区别
- node package的两种依赖
- 数据结构复习整理(易混点、易忘点)
- 菜单高亮滚动监听
- 【笔试/面试】—— 判断一个链表是否有环
- TED(Technology, Entertainment, Design)演讲培训笔记
- tomcat启动异常--at java.util.concurrent.FutureTask.report(Unknown Source)
- django--模板的继承
- LeetCode OJ 83. Remove Duplicates from Sorted List
- 两种文件上传的实现-Ajax和form+iframe
- C语言结构体的字节对齐
- 一、会话控制session、cookie
- Jquery倒计时源码分享
- jQuery hover 延时器实现代码
- 加速Android Studio的Gradle构建速度
- MarkDown的使用
- 为什么静态成员、静态方法中不能用this和super关键字
- SecureCRT乱码问题解决方法