When building, Gradle gave me the Failed to resolve: com.github.PhilJay:MPAndroidChart:v2.2.4
error.
I already added jitpack
in build.gradle
here:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
flatDir {
dirs 'aar'
}
maven { url "https://jitpack.io" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
This is based here. What am I missing?