Android Studio 3.1.2 : Failed to resolve: runtime

前端 未结 4 1983
栀梦
栀梦 2021-02-02 06:58

I have recently updated my Android Studio to 3.1.2 . After the update I tried opening the existing project and was shown multiple gradle errors while compiling the project.

4条回答
  •  日久生厌
    2021-02-02 07:20

    Add maven { url 'https://maven.google.com' } as first entry in allprojects/repositories in top level build.gradle

    like this:

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

提交回复
热议问题