ashik94vc / ElegantNumberButton

Widget which acts as a number counter which changes its number on +/- press.
Apache License 2.0
180 stars 63 forks source link

Library is not syncing #40

Open hamza94max opened 2 years ago

hamza94max commented 2 years ago

after adding the dependency, its not working

Capture

nvcoden commented 1 year 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?

devin1996 commented 3 months ago

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()
    }
}
kishanr2305 commented 1 month ago

1: Task failed with an exception.