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

前端 未结 5 1491
名媛妹妹
名媛妹妹 2020-11-29 04:27

My system suddenly went off and I switched it on and I got Error:Failed to resolve: android.arch.core:common:1.1.0 error in my android studio. I have tried clean and rebuild

5条回答
  •  北海茫月
    2020-11-29 04:53

    I resolve this issue by moving maven {url "https://maven.google.com"} before jcenter(), like this:

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

    This is because I find jcenter() repository has deleted the directory of android.arch.core, so we have to get this file (android.arch.core:common-1.1.0.jar) from "https://maven.google.com"

提交回复
热议问题