大家好,朋友们,我是初学者,这里是https://github.com/kizitonwose/colorpreference使用这个库的implementation'com.github.kizitonwose.colorpreference:core:‘库链接
在我的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'
}发布于 2020-03-28 18:15:35
我在使用library.And的时候也遇到了同样的问题,我意识到这是因为mismatch.Try的一个合适的版本,我建议你获得最新的版本!
https://stackoverflow.com/questions/56753535
复制相似问题