Error:Failed to resolve: android.arch.core:common:1.1.0

build. gradle(project)中

allprojects {
repositories {
    jcenter()
    maven {
        url 'https://jitpack.io'
    }
    maven {
        url "https://maven.google.com"
    }
}
}

改为

repositories {
    maven { url "https://maven.google.com" }
    jcenter()
    maven { url 'https://jitpack.io' }
}

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

posted @ 2018-05-28 20:49  鸭子船长  阅读(2298)  评论(0编辑  收藏  举报