percrence Sacreen颜色选择器库无法在android studioH中实现

时间:2019-06-25 11:57:52

标签: java android github

您好朋友,我是初学者,正在使用此库实现'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'
}

1 个答案:

答案 0 :(得分:0)

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