-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,所以我在这里做错了什么?
谢谢。没意识到2天前发布了1.1.2和2.0.0。我会等待 –
欢迎您,并且接受我的回答 – Omer