[英]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.
我在一个老项目中将gradle版本升级到5.4.1,遇到如下问题。 The reference address of the project is https://github.com/lyc7898/AndroidTech I modified the configuration of the build.gradle file, as shown below
项目参考地址为https://github.com/lyc7898/AndroidTech我修改了build.gradle文件的配置,如下图
Try this in your project's build.gradle
buildscript在您项目的
build.gradle
buildscript 中试试这个
repositories {
google()
jcenter()
mavenLocal()
maven {
url "https://plugins.gradle.org/m2/"
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.