在我将Android更新到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发布于 2020-09-10 05:02:44
到目前为止,降级了gradle的版本,没有合适的解决方案。它将在( Gradle版本- 5.6.4)中正常工作。
我已经试过所有的东西了,但还是不会消失的。当我下载最新版本时,问题就来了。我只是简单地切换到以前版本的gradle,它现在运行良好。
https://stackoverflow.com/questions/63799086
复制相似问题