-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.gradle
More file actions
22 lines (20 loc) · 919 Bytes
/
settings.gradle
File metadata and controls
22 lines (20 loc) · 919 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
jcenter() // Warning: this repository is going to shut down soon
}
}
/*
Had this error: "Build was configured to prefer settings repositories over project
repositories but repository 'maven' was added by build file 'build.gradle'"
StackOverflow, the top answer recommended deleting the above 'dependencyResolutionManagement' block as a fix
(see here):
https://stackoverflow.com/questions/69163511/build-was-configured-to-prefer-settings-repositories-over-project-repositories-b
but that didn't work. The second answer said to put maven jitpack.io line inside the block, in this
file (settings.gradle) and it started working for me.
*/
rootProject.name = "BrainFatigueApp"
include ':app'