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