Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library is not syncing #40

Open
hamza94max opened this issue Aug 3, 2022 · 3 comments
Open

Library is not syncing #40

hamza94max opened this issue Aug 3, 2022 · 3 comments

Comments

@hamza94max
Copy link

after adding the dependency, its not working

Capture

@nvcoden
Copy link

nvcoden commented Feb 2, 2023

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?

@devin1996
Copy link

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.

  • My Compile SDK Version was 34 (API 34 ("UpsideDownCake"; Android 14.0))

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()
    }
}

@kishanr2305
Copy link

1: Task failed with an exception.

  • 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants