Gradle in Android Studio: Failed to resolve third-party libraries

后端 未结 7 2294
陌清茗
陌清茗 2020-12-09 10:51

I have been trying to switch my project from Intellij to Android Studio, which has required me to create a build.gradle file. I know I can add each of these as a library dep

7条回答
  •  醉梦人生
    2020-12-09 11:21

    Add:

    repositories {
       mavenCentral()
    }
    

    to the build.gradle. Now you have repositories defined only in build script which resolves dependencies only for the buildscript itself not for the project.

提交回复
热议问题