建筑时,Gradle给我Failed to resolve: com.github.PhilJay:MPAndroidChart:v2.2.4
错误。无法解决:com.github.PhilJay.MPAndroidChart:v2.2.4
我已经在build.gradle
添加jitpack
这里:
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
}
这是基于here。我错过了什么?
gradle控制台究竟说了些什么? – AndroidMechanic
@AndroidMechanic它说'无法解决:com.github.PhilJay:MPAndroidChart:v2.2.4'并指向模块'build.gradle'在这一行:'编译'com.github.PhilJay:MPAndroidChart:v2.2.4 '' –