2017-09-22 42 views
-1

時,當嘗試添加依賴的Material Spinner的最新版本(2.0.0),我gradle這個同步失敗,出現錯誤:搖籃同步錯誤添加材料微調依賴

Error:(33, 14) Failed to resolve: com.github.ganfra:material-spinner:2.0.0 

這是我的構建。等級

apply plugin: 'com.android.application' 

android { 
compileSdkVersion 23 
buildToolsVersion "26.0.1" 
defaultConfig { 
    applicationId "com.myroommate.myroommate" 
    minSdkVersion 23 
    targetSdkVersion 23 
    versionCode 1 
    versionName "1.0" 
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 
} 
buildTypes { 
    release { 
     minifyEnabled false 
     proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
    } 
} 
} 

dependencies { 
compile fileTree(dir: 'libs', include: ['*.jar']) 
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 
    exclude group: 'com.android.support', module: 'support-annotations' 
}) 
compile 'com.android.support:appcompat-v7:23.4.0' 
compile 'com.android.support:support-v4:23.4.0' 
compile 'com.android.support:design:23.4.0' 
compile 'com.android.support.constraint:constraint-layout:1.0.2' 
testCompile 'junit:junit:4.12' 
compile 'com.android.support:cardview-v7:25.3.1' 
compile 'com.android.volley:volley:1.0.0' 
compile ('com.github.ganfra:material-spinner:2.0.0') { 
    exclude group: 'com.android.support', module: 'appcompat-v7' 
} 
} 

但是,當我改變Material Spinner version to 1.1.1,在gradle這個同步的完成沒有任何錯誤。

compile ('com.github.ganfra:material-spinner:1.1.1') { 
    exclude group: 'com.android.support', module: 'appcompat-v7' 
} 

即使使用1.1.2也會導致我的gradle生成失敗。我想使用最新版本的Material Spinner,所以我在這裏做錯了什麼?

回答

1

釋放尚未推到尚未有Maven。 很快就會好起來的。 檢查this

+0

謝謝。沒意識到2天前發佈了1.1.2和2.0.0。我會等待 –

+0

歡迎您,並且接受我的回答 – Omer