Failed to resolve: com.github.PhilJay:MPAndroidChart:v2.1.4

pRaNaY picture pRaNaY · Sep 22, 2015 · Viewed 40k times · Source

I'm using MPAndroidChart library in android studio. But when I'm trying to sync gradle I get an error as shown in below image.

Gradle text is here to compile MPAndroidChart library.

compile 'com.github.PhilJay:MPAndroidChart:v2.1.4'

Error screenshot

How can I resolve this problem?

Answer

Maher Abuthraa picture Maher Abuthraa · Jun 18, 2016

Add

maven { url "https://jitpack.io" }

to repositories under allprojects not under buildscript see screenshot:

enter image description here