What is the difference between declaring repositories in the buildScript
section of the gradle build or in the root level of the build.
Option 1:
build.gradle:
buildScript {
repositories {
mavenCentral();
}
}
or
build.gradle:
repositories {
mavenCentral();
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…