zubliquzaini刚才评论道 您好,我在同步项目时遇到此问题:
Error:(30, 13) Failed to resolve: com.yqritic:recylerview-flexibledivider:1.2.4
这是我的应用程序gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.ztl.ztlubricant.testing"
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
compile 'com.android.support:cardview-v7:23.1.1'
compile 'com.android.support:recyclerview-v7:23.1.1'
compile 'com.android.support:palette-v7:23.1.1'
compile 'com.android.support:support-v4:23.1.1'
compile 'com.yqritic:recylerview-flexibledivider:1.2.4'
}
我不确定是否有一个文件需要下载才能使yqritic依赖项正常工作.. 救命!谢谢..
答案 0 :(得分:1)
您需要添加:
repositories {
jcenter()
}
并尝试使用版本1.2.6
...
compile 'com.yqritc:recyclerview-flexibledivider:1.2.6'
...