建築時,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 '' –