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

i can't build #895

Open
VinnyMDS opened this issue Jan 4, 2024 · 2 comments
Open

i can't build #895

VinnyMDS opened this issue Jan 4, 2024 · 2 comments

Comments

@VinnyMDS
Copy link

VinnyMDS commented Jan 4, 2024

No description provided.

@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

Maybe this is because, this dependency is only hosted in jcenter(). And as it is not getting added as a repository source, the dependency is not getting downloaded.

What I did to 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()
    }
}

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

@mohammedmans
Copy link

@devin1996 Is this solution still working?
I tried it but not working for this repo or other older repo only exist on JCenter

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

3 participants