I'm working on Android project where I'm trying to add MPAndroidChart as follows,
At project level build.gradle file I've two repositories,
allprojects {
repositories {
jcenter()
maven { url 'https://maven.google.com' }
maven { url "https://jitpack.io" }
}
}
Gradle 'Sync' at this point worked okay. After that I added following line to the app/build.gradle file as,
dependencies {
...
...
...
implementation 'com.github.PhilJay:MPAndroidChart:v3.0.3'
}
With this change, I started getting 'Could not resolve' error shown below, Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.github.PhilJay:MPandroidChart:v3.0.3.
What am I missing? Any help is appreciated.
Build env: Mac OS X High Sierra, 10.13 Android Studio version: 3.1.2