-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
27 lines (24 loc) · 841 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google() // This should be kept, as it's the primary source for Android dependencies
mavenCentral() // Prefer this over jcenter() for modern dependencies
}
dependencies {
classpath 'com.android.tools.build:gradle:8.7.3'
// Ensure compatibility with your Gradle version
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile).tap {
configureEach {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
}
}
allprojects {
repositories {
google() // Keep Google's repository for Android dependencies
mavenCentral() // Preferred repository
}
}