构建时,Gradle 给了我Failed to resolve: com.github.PhilJay:MPAndroidChart:v2.2.4
错误。
我已经jitpack
在build.gradle
这里添加了:
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
}
这是基于这里。我错过了什么?