无法解决:uz.shift:colorpicker:0.5

问题描述

在我将Android Studio更新为4.0版本之后,颜色选择器依赖性不起作用:“ implementation 'uz.shift:colorpicker:0.5@aar'”。我还尝试了另一个依赖关系,但同样的问题。

build.gradle

repositories {
    maven { url "https://dl.bintray.com/dasar/maven" }
    maven { url "https://s3.amazonaws.com/repo.commonsware.com" }
    maven { url "https://jitpack.io" }
    maven { url  "http://dl.bintray.com/dasar/maven" }

    mavenCentral()
    }

 dependencies {
    implementation fileTree(include: ['*.jar'],dir: 'libs')

    //rate alert
    implementation 'com.github.hotchemi:android-rate:1.0.1'
    implementation "androidx.exifinterface:exifinterface:1.0.0"
    implementation "androidx.appcompat:appcompat:1.0.0"
    implementation "androidx.cardview:cardview:1.0.0"
    implementation "androidx.recyclerview:recyclerview:1.0.0"
    implementation "com.google.android.material:material:1.0.0"
    implementation "androidx.palette:palette:1.0.0"
    implementation "androidx.browser:browser:1.0.0"
    implementation "androidx.legacy:legacy-support-v4:1.0.0"


    implementation 'uz.shift:colorpicker:0.5@aar'


    implementation 'com.github.jetradarmobile:desertplaceholder:1.1.1'
    implementation 'de.hdodenhof:circleimageview:2.2.0'
    implementation 'com.github.yalantis:ucrop:2.2.2'
    implementation 'com.davemorrissey.labs:subsampling-scale-image-view:3.10.0'
    implementation 'jp.wasabeef:recyclerview-animators:2.2.7'
    implementation 'com.github.HoraApps:Liz:-SNAPSHOT'
    implementation 'com.github.lzyzsd:circleprogress:1.2.1'

    // TODO check them out
    implementation 'com.turingtechnologies.materialscrollbar:lib:10.0.3'
    implementation 'de.psdev.licensesdialog:licensesdialog:1.8.3'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
   }

错误

Failed to resolve: uz.shift:colorpicker:0.5
   Show in Project Structure dialog
   Affected Modules: app

解决方法

从现在开始降级gradle的版本,没有适当的解决方案。 在(Gradle版本-5.6.4)中可以正常工作

我已经尝试了所有方法,但仍将消失。下载最新版本时出现问题。我只是切换回了gradle的先前版本,现在一切正常。

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...