ERROR: Failed to resolve: com.github.PhilJay:MPAndroidChart:v3.1.0

注意指定maven仓库地址 maven { url 'https://jitpack.io' }java

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

注意,是在project的build.gradle中添加,位置是
在这里插入图片描述web