ArthurHub / Android-Image-Cropper

Image Cropping Library for Android, optimized for Camera / Gallery.
Apache License 2.0
6.4k stars 1.38k forks source link

i can't build #895

Open VinnyMDS opened 10 months ago

devin1996 commented 4 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

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()
    }
}
mohammedmans commented 2 months ago

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