Search code examples
androidmpandroidchart

I added it to my project but I can't import it in code


I added it to my project but I can't import it in code

build.gradle:

repositories {
    google()
    mavenCentral()
    maven { url 'https://jitpack.io' }
}

and

dependencies {
 implementation 'com.android.support:appcompat-v7:28.0.0'
 implementation 'com.android.support:design:28.0.0'
 implementation 'com.android.support.constraint:constraint-layout:2.0.4'
 implementation 'android.arch.navigation:navigation-fragment:1.0.0'
 implementation 'android.arch.navigation:navigation-ui:1.0.0'
 implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
}

Solution

  • Add maven { url 'https://jitpack.io' } to the settings.graddle and it should work properly