2015-12-01 45 views
1

zubliquzaini評論剛纔 您好,當我同步的項目我得到這個問題:錯誤未能解決'com.yqritic:recylerview-flexibledivider:1.2.4;

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依賴工作.. 幫助!謝謝。

回答

1

您需要添加:

repositories { 
    jcenter() 
} 

,並嘗試使用1.2.6版本

... 
compile 'com.yqritc:recyclerview-flexibledivider:1.2.6' 
...