简体   繁体   中英

Cannot resolve external dependency com.android.tools.build:gradle:3.4.2 because no repositories are defined

在此处输入图像描述 I upgraded the gradle version to 5.4.1 in an old project, and encountered the following problems. The reference address of the project is https://github.com/lyc7898/AndroidTech I modified the configuration of the build.gradle file, as shown below

Try this in your project's build.gradle buildscript

    repositories {
        google()
        jcenter()
        mavenLocal()
        maven {
            url "https://plugins.gradle.org/m2/"
        }
    }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM