Gaurav Rajput
Jul 8, 2023

--

Well explained , Thanks it saved my day.

If anyone found any issue like

Build was configured to prefer settings repositories over project repositories but repository 'maven' was added by build file 'build.gradle'

Then plz remove

dependencyResolutionManagement {

repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)

repositories {

google()

mavenCentral()

}

}

This code from root level settings.gradle file.

--

--

Gaurav Rajput
Gaurav Rajput

Written by Gaurav Rajput

Working remotely as Android Developer

No responses yet