gpt4 book ai didi

android - 添加Material Spinner依赖项时出现Gradle同步错误

转载 作者:行者123 更新时间:2023-12-03 06:27:41 25 4
gpt4 key购买 nike

当尝试添加Material Spinner的最新版本(2.0.0)的依赖项时,我的gradle同步失败,并显示以下错误:

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

这是我的build.grade
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,所以我在做什么错呢?

最佳答案

发布尚未被推向Maven。
很快会没事的。
检查this

关于android - 添加Material Spinner依赖项时出现Gradle同步错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46358937/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com