这给了我一些问题,因为我安装了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.
Then, I add google()
before jcenter()
like that :
allprojects {
repositories {
google()
jcenter()
}
...
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.