Reputation: 99
Execution failed for task ':app:checkDebugAarMetadata'.
Could not resolve all files for configuration ':app:debugRuntimeClasspath'. Could not find colorpicker-0.0.13.aar (com.github.QuadFlask:colorpicker:0.0.13). Searched in the following locations: https://jitpack.io/com/github/QuadFlask/colorpicker/0.0.13/colorpicker-0.0.13.aar
Possible solution:
build.gradle (app)
allprojects {
repositories {
maven {
url "https://jitpack.io"
}
}
dependencies {
implementation 'com.github.QuadFlask:colorpicker:0.0.13'
}
Upvotes: 1
Views: 2252
Reputation: 96
Using Android Studio, the correct repo for the library:
implementation 'com.github.QuadFlask:colorpicker:0.0.15'
is currently only downloadable as AAR at
it is only now available as an AAR in this repo.
You can only use the .aar file directly as a local dependency:
Download and Use the .aar File Locally, steps:
a. Download the aar File from the working repo above.
b. Add the File to Your Project.
Place the .aar file in your app's libs directory.
c. Modify build.gradle.
Add this to your app/build.gradle:
repositories {
flatDir {
dirs 'libs'
}
}
dependencies {
implementation(name: 'colorpicker-0.0.15', ext: 'aar')
}
d. Sync and Build:
Sync the project and rebuild. It should be running well.
In some cases, instead of app/build.gradle, you need to use settings.gradle dependencyResolutionManagement block instead, where you need to configure flatDir correctly. See below inset where this AAR works.
Upvotes: 0
Reputation: 2456
Add following in your top level build.gradle file
allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}
And then add following dependency in app level dependencies
dependencies {
implementation 'com.github.QuadFlask:colorpicker:0.0.15'
}
Upvotes: 2