Yalantis / uCrop

Image Cropping Library for Android
https://yalantis.com/blog/introducing-ucrop-our-own-image-cropping-library-for-android/
11.89k stars 2.16k forks source link

ERROR: Failed to resolve: com.github.yalantis:ucrop:2.2.5 #659

Open mahesh-co1 opened 4 years ago

mahesh-co1 commented 4 years ago

Not able to install in Android studio. Continuosly getting this error not matter which version I use or whether it is native or not.

harmeet-sidhu commented 4 years ago

I am also facing same issue " ERROR: Failed to resolve: com.github.yalantis:ucrop:2.2.5 " , @mahesh-co1 did you able to resolve it ??

chang-guofeng commented 4 years ago

Same problem. If you solved this ,please info me. Thanks.

chang-guofeng commented 4 years ago

I fix it by add repositories { google() jcenter() maven { url "https://jitpack.io" } } to app/build.gradle

https://github.com/Yalantis/uCrop/issues/490

alkawero commented 4 years ago

add it on allprojects { } not in buildscript { }

Ayala-Android commented 3 years ago

hi, any news?

Ella-Y commented 1 year ago

Same problem, and resolved it. I hope this help.

in app.gradle

implementation 'com.github.yalantis:ucrop:2.2.6'

in settings.gradle

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        maven { url 'https://jitpack.io' } //put here
        jcenter()
    }
}