0

I'm trying to add code from jitpack.io

repositories {
maven { url 'https://jitpack.io' }

}

dependencies {
implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'

}

But when I sync project there is an exception

A problem occurred evaluating project ':app'.

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

And I don't really understand what to do with it and how to change preferences

Android Gradle Plugin Version is 7.0.3

Gradle Version is 7.0.2

  • Have a look here: https://stackoverflow.com/a/70989593. Don't forget to remove the line from `build.gradle`, too. – Mike M. Apr 10 '22 at 20:40

0 Answers0