[android]解决Android studio遇见Could not find common.jar 错误

发生的错误:

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

修改的位置:Gradle Scripts --->build.gradle(Project:项目名)--->allprojects{}里面;
解决方法:

    repositories {
        maven{url"https://maven.google.com"}
        jcenter()//放到google后面加载
        maven{url 'https://jitpack.io'}
    }

另外gradle的版本和android插件版本也会影响,以下是版本对应图:


[android]解决Android studio遇见Could not find common.jar 错误_第1张图片

你可能感兴趣的:([android]解决Android studio遇见Could not find common.jar 错误)