androidgradlempandroidchartjitpack

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


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?


Solution

  • The problem was solved after restarting Android Studio > rebuild project.