问题: * What went wrong:
原因是:jcenter已经删掉了android.arch.core库,所以需要从 maven { url "https://maven.google.com" }中获取android.arch.core:common-1.1.0.jar 。参考这篇文章应该可以解决你的问题。
解决办法: build.gradle中添加上Google() 库
allprojects {
repositories {
google() ---> ( add this)
jcenter()
maven { url 'https://maven.google.com' } ---> ( add this)
}
}
这样就解决了 !!!!!
网上还有人说:把引用的Jar 包 .+ 号的版本 换成具体的版本
这些组件一定要精确指定它的版本号!!!,不能使用".+"的方式,否则则会出现上述问题,这个问题是谷歌前天爆发的大规模Bug!!!
GitHub: https://github.com/HuaDanJson