Failed to resolve: com.github.PhilJay:MPAndroidChart:v2.1.4
问题 I am using MPAndroidChart libarary in android studio.But when i am trying to sync gradle which given an error as below image. Gradle text is here to compile MPAndroidChart libarary. compile 'com.github.PhilJay:MPAndroidChart:v2.1.4' Please help to resolve this problem. Thanks in advance 回答1: Add maven { url "https://jitpack.io" } to repositories under allprojects not under buildscript see screenshot: 回答2: Putting repositories { maven { url "https://jitpack.io" } } in build.gradle in app