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

标签 java android github

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/

相关文章:

java 计算平均数

java - Glide 和 java.lang.OutOfMemoryError

java - 如何使用 log.d 记录一个整数值?

git - 为 github 项目做贡献时代码缩进

java - 接口(interface)和抽象类中的相同方法

Java:字体的磅值与其呈现范围之间是否存在线性相关性?

android - BadParcelableException :ClassNotFoundException when unmarshalling: android. support.v4.app.FragmentManagerState

java - 使用 android.content.Context.checkPermission 检查权限时出现空指针异常

github - 成为贡献者意味着我的请求被接受了吗?

git - 在裸存储库上获取 “fatal: This operation must be run in a work tree?”