您的位置:首页 > 其它

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() }


其他人遇到问题的方案:

请点击这里
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息