Open hamza94max opened 2 years ago
Hi, I think this is because, this dependency is only hosted in jcenter(). And as it is not getting added as a repository source now a days, the dependency is not getting downloaded. I added jcenter ) as a source and it worked. @ashik94vc ,could you please get this listed in mavencentral() or other commonly used sources?
I used this dependency on a few of my projects a few years back and recently needed it back. So I also came up with the same issue which Library is not syncing
What @nvcoden mentioned is the reason which this issue occurs, and I followed same solution he mentioned in his comment and it worked.
What I did resolve my Issue was I added jcenter() above the mavencentral() in the below shown places in my settings.gradle (Project Settings) which was written in Groovy.
By doing this, it will change the priority to jcenter() before mavencentral()
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
// Below Line
**jcenter()**
mavenCentral()
}
}
pluginManagement {
repositories {
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
// Below Line
**jcenter()**
mavenCentral()
gradlePluginPortal()
}
}
What went wrong: Execution failed for task ':app:checkDebugAarMetadata'.
Could not resolve all files for configuration ':app:debugRuntimeClasspath'. Failed to transform lib-1.0.2.aar (com.cepheuen.elegant-number-button:lib:1.0.2) to match attributes {artifactType=android-aar-metadata, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}. Could not find lib-1.0.2.aar (com.cepheuen.elegant-number-button:lib:1.0.2). Searched in the following locations: https://jcenter.bintray.com/com/cepheuen/elegant-number-button/lib/1.0.2/lib-1.0.2.aar Failed to transform zoomage-1.2.0.aar (com.jsibbold:zoomage:1.2.0) to match attributes {artifactType=android-aar-metadata, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}. Could not find zoomage-1.2.0.aar (com.jsibbold:zoomage:1.2.0). Searched in the following locations: https://jcenter.bintray.com/com/jsibbold/zoomage/1.2.0/zoomage-1.2.0.aar Failed to transform carouselview-0.1.5.aar (com.synnapps:carouselview:0.1.5) to match attributes {artifactType=android-aar-metadata, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}. Could not find carouselview-0.1.5.aar (com.synnapps:carouselview:0.1.5). Searched in the following locations: https://jcenter.bintray.com/com/synnapps/carouselview/0.1.5/carouselview-0.1.5.aar Failed to transform autoimageslider-1.4.0-appcompat.aar (com.github.smarteist:autoimageslider:1.4.0-appcompat) to match attributes {artifactType=android-aar-metadata, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}. Could not find autoimageslider-1.4.0-appcompat.aar (com.github.smarteist:autoimageslider:1.4.0-appcompat). Searched in the following locations: https://jcenter.bintray.com/com/github/smarteist/autoimageslider/1.4.0-appcompat/autoimageslider-1.4.0-appcompat.aar
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
after adding the dependency, its not working