how to solve "gradle failed resolve com.theartofdev.edmodo:android-image-cropper:+"
Asked Answered
T

14

7

I install new version of Android Studio"2.1.0.9". Now when sync gradle error message in this:

gradle failed resolve com.theartofdev.edmodo:android-image-cropper:+

I used any version of image cropper but still this message there is. gradle:

buildscript {
repositories {
    maven { url 'https://maven.fabric.io/public' }
}

dependencies {
    classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'

repositories {
mavenCentral()
jcenter()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:support-v4:23.1.1'
compile 'com.google.android.gms:play-services:8.4.0'
compile 'com.github.dmytrodanylyk.circular-progress-button:library:1.1.3'
compile 'com.theartofdev.edmodo:android-image-cropper:2.0.+'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.squareup.okhttp:okhttp-urlconnection:2.5.0'
}
android {
compileSdkVersion 'Google Apis:Google Apis:23'
buildToolsVersion '23.0.2'
useLibrary 'org.apache.http.legacy'
compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_7
    targetCompatibility JavaVersion.VERSION_1_7
}
defaultConfig {  
    minSdkVersion 14
    targetSdkVersion 23
}
Tautog answered 3/5, 2016 at 5:36 Comment(10)
call compile 'com.theartofdev.edmodo:android-image-cropper:2.0.+' then Clean and rebuild your projectDigiovanni
@IntelliJAmiya Suggestion will work.Monoatomic
@jaydroider lets see what happenDigiovanni
@IntelliJAmiya this error still is: Required by: MyProject:unspecified > Could not resolve com.theartofdev.edmodo:android-image-cropper:2.0.+. > Failed to list versions for com.theartofdev.edmodo:android-image-cropper. > Could not GET 'jcenter.bintray.com/com/theartofdev/edmodo/…'. > Connection to jcenter.bintray.com refused > Could not resolve com.theartofdev.edmodo:android-image-cropper:2.0.+. > Failed to list versions for com.theartofdev.edmodo:android-image-cropper.Tautog
OKAY @Tom SHOW YOUR BUILD.GRADLEDigiovanni
@Tom show your total build.gradle (Add this in your question section)Digiovanni
@IntelliJAmiya I posted it.Tautog
@Tom try this lib dependencies { compile 'com.theartofdev.edmodo:android-image-cropper:2.0.0' }Tyndale
Guys! I'm also facing the same problem. It just suddenly gave me an error. Any solutions on this?Initiatory
I use Hotspot Shield when gradle is syncing and my problem solved.Tautog
R
6

you should to replace the dependency by this

compile 'com.theartofdev.edmodo:android-image-cropper:2.3.1'

it'works for me

Ramose answered 4/1, 2017 at 12:32 Comment(0)
S
5

Following steps worked for me after searching and finding solutions from various souces.

Step1: Add the following in AndroindManifest.xml at android/app/src/main

<activity
   android:name="com.canhub.cropper.CropImageActivity"
   android:theme="@style/Base.Theme.AppCompat">
</activity>

Step2: Add the below lines of code to /android/build.gradle

allprojects {
    repositories {
       .................................
        //noinspection JcenterRepositoryObsolete
        jcenter() {
            content {
                includeModule("com.theartofdev.edmodo", "android-image-cropper")
            }
        }
    }
}

Step3: Add the below line inside dependencies {} node in andoid/app/build.gradle

implementation "com.theartofdev.edmodo:android-image-cropper:2.8.0"
Shillyshally answered 19/3, 2022 at 15:42 Comment(0)
P
3

To solve this problem all you have to do is visit this link

https://bintray.com/package/files/arthurhub/maven/Android-Image-Cropper?order=asc&sort=name&basePath=com%2Ftheartofdev%2Fedmodo%2Fandroid-image-cropper&tab=files

scroll to the bottom and replace your dependency with the latest version.

example: if previously your dependency is

compile 'com.theartofdev.edmodo:android-image-cropper:2.4.+'

then replace it with (at the time of posting the answer the latest is 2.4.7)

compile 'com.theartofdev.edmodo:android-image-cropper:2.4.7'
Perineum answered 2/8, 2017 at 19:27 Comment(0)
J
0

when use mavenCentral inside of jcenter you get this issue , dont change jcenter

Jackie answered 27/12, 2021 at 12:13 Comment(0)
M
0

Replace Library with

implementation 'com.theartofdev.edmodo:android-image-cropper:2.3.1'

Avoid using '+' sign in last.

Moreau answered 28/9, 2022 at 15:32 Comment(0)
O
0
change version don't use + if you use android studio bumblebee, go to setting.gradle, and add jcenter() :

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        jcenter() // Warning: this repository is going to shut down soon
    }
}
Optimal answered 18/10, 2022 at 16:57 Comment(0)
C
0

implementation("com.vanniktech:android-image-cropper:4.3.3")

you can used this place of compile 'com.theartofdev.edmodo:android-image-cropper:2.4.7'

Cordiform answered 13/2, 2023 at 6:28 Comment(0)
N
0

If someone still using it I fixed it using this

implementation "com.theartofdev.edmodo:android-image-cropper:2.8.0"

Add this to your AndroidManifest.xml

<activity
        android:name="com.theartofdev.edmodo.cropper.CropImageActivity"
        android:theme="@style/Base.Theme.AppCompat" />

In settings.gradle

dependencyResolutionManagement {
   repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
   repositories {
       google()
       mavenCentral()
       jcenter()//Add this but this will give you deprecated API
   }
}

Add this in gradle.properties

android.enableJetifier=true
Nikola answered 5/3, 2023 at 7:41 Comment(0)
S
0

In settings.Gradle use jcenter() instead of mavenCentral(). And use newer version of CropImage.

Saddlebow answered 8/6, 2023 at 5:31 Comment(0)
H
0

Just update dependency version which is mention below:

implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
Hypostatize answered 3/10, 2023 at 6:13 Comment(0)
A
0

I have added below code in build.gradle and it's working for me.

allprojects {
    repositories {
        mavenCentral()
        maven {
            url "https://jitpack.io"
        }
        google()
        jcenter()
    }
}
Acidic answered 11/8, 2024 at 15:47 Comment(0)
A
0

Replace with

implementation 'com.github.arthurhub:android-image-cropper:2.8.0'

How i know it (ensure it's the right)

I search com.theartofdev.edmodo:android-image-cropper:2.3.0 The repository is https://github.com/ArthurHub/Android-Image-Cropper Then go to : https://jitpack.io and put https://github.com/ArthurHub/Android-Image-Cropper in search. You will see how put dependencies in build.gradle

Achaemenid answered 6/9, 2024 at 17:4 Comment(0)
O
0

I have a solution for this error. Last week I faced this problem and now solve it by below solutions.

Downloadd 'aar' file from here.:

Then: Add this file to this folder: app -> libs (if not exist, create)

First Way: Add this code in build.gradle (App):

implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])

Then: The Sync with gradle file. I think problem has solved.

Another way Add this code in build.gradle (Project):

allprojects {
    repositories {
        // others
        flatDir {
            dirs 'libs' // This is where your AAR file is located
        }

    }
}

Finally: Add this dependency in build.gradle (App):

implementation(name:'android-image-cropper-2.8.0',ext:'aar')

I think it will help all.

Organism answered 21/9, 2024 at 6:3 Comment(0)
C
-1

Use

implementation 'com.github.alirezaafkar:Android-Image-Cropper:2.3.3'
Cormorant answered 3/9, 2024 at 13:48 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.