[英]Could not resolve all dependencies for configuration ':app:debugCompileClasspath
这给了我一些问题,因为我安装了AS时遇到了不同的问题,这是我尝试构建gradle时出现的最新问题,我已经清理,更新了SDK,重新启动了但至今没有解决方法,请帮忙。
我之前也遇到过此问题,因此我尝试Clean project
然后尝试Rebuild project
,然后尝试invalidate caches & Restart
,从而解决了问题。
I solved my problem by removing 我通过移除解决了我的问题
maven {
url "https://maven.google.com"
}
in the allprojects { repositeries{ ... } }
lines below the buildscript { ... }
lines. 在
allprojects { repositeries{ ... } }
行下面的buildscript { ... }
行中。
Then, I add google()
before jcenter()
like that : 然后,我像这样在
jcenter()
之前添加google()
:
allprojects {
repositories {
google()
jcenter()
}
...
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.