Error:Could not find common.jar (android.arch.core:common:1.0.0).

1.Android Studio打开项目突然报如下错误

Error:Could not find common.jar (android.arch.core:common:1.0.0).
Searched in the following locations:
https://jcenter.bintray.com/android/arch/core/common/1.0.0/common-1.0.0.jar

原因:jcenter已经删掉了android.arch.core库,所以需要从 maven { url “https://maven.google.com” }中获取android.arch.core:common-1.1.0.jar 。

解决办法:在项目(注意是项目Project)的build.gradle文件的allprojects的respositories中添加

allprojects {
    repositories {
        maven{url"https://maven.google.com"}
        jcenter()
    }
}
注意:  jcenter()  一定要放在 maven {url "https://maven.google.com"}之后

你可能感兴趣的:(Android开发)