gpt4 book ai didi

java - 偏好屏幕颜色选择器库无法在android studioH中实现

转载 作者:行者123 更新时间:2023-12-02 03:56:21 27 4
gpt4 key购买 nike

friend 们你好,我是初学者,正在使用这个库实现'com.github.kizitonwose.colorpreference:core:'图书馆链接在这里https://github.com/kizitonwose/colorpreference

在我的 perfernceSacreen 项目中,问题是当我尝试在我的项目中实现这个库时,它给了我这个异常:

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.github.kizitonwose.colorpreference:core:<latest-version>.
Show Details
Affected Modules: app


ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.github.kizitonwose.colorpreference:core:<latest-version>.
Show Details
Affected Modules: app


ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.github.kizitonwose.colorpreference:core:<latest-version>.
Show Details
Affected Modules: app

我的依赖

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'petrov.kristiyan:colorpicker-library:1.1.5'

implementation 'com.github.kizitonwose.colorpreference:core:<latest-version>'
implementation 'com.yokkomi:seekbar-preference:1.0'
implementation 'com.github.ganfra:material-spinner:1.1.0'
implementation 'com.wdullaer:materialdatetimepicker:2.4.0'
implementation 'com.github.ganfra:material-spinner:1.1.0'
implementation 'uk.co.chrisjenx:calligraphy:2.1.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.infideap.drawerbehavior:drawer-behavior:0.1.5'
implementation 'com.github.GrenderG:Toasty:1.4.2'
implementation 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:support-v4:28.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.google.android.gms:play-services-ads:17.2.1'
}

最佳答案

我在使用Toasty库时也遇到了同样的问题。并意识到这是因为版本不匹配。尝试合适的Android版本。我建议您获取最新版本!

关于java - 偏好屏幕颜色选择器库无法在android studioH中实现,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56753535/

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