I have already checked lots of questions related to this question but nothing working out
Project dependency Build.gradle
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.4'
classpath 'com.google.gms:google-services:4.3.4'
}}
allprojects {
repositories {
jcenter()
google()
}
}
Error A problem occurred configuring project ':*********'.
Could not resolve all files for configuration '::classpath'. Cannot resolve external dependency com.android.tools.build:gradle:3.6.4 because no repositories are defined. Required by: project :*************
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
Can you please help me out on this?
在dependencies {}
块之后有一个额外的花括号,将它移到文件的末尾以便allprojects {}
被包含为buildscript {}
的子项
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.