// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:7.0.0"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
maven { url "https://jitpack.io" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
This is the error i am getting
A problem occurred evaluating root project 'LuckyMuch'.
Build was configured to prefer settings repositories over project repositories but repository 'Google' was added by build file 'build.gradle'
- Try: Run with --info or --debug option to get more log output. Run with --scan to get full insights.