如何解决" gradel failed resolve com.theartofdev.edmodo:android-image-cropper:+"

时间:2016-05-03 05:36:19

标签: android android-studio gradle build.gradle

我安装了新版Android Studio" 2.1.0.9"。现在当同步gradle错误消息在此:

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

我使用了任何版本的图像裁剪器,但仍有此消息。 的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
}

2 个答案:

答案 0 :(得分:4)

你应该用这个替换依赖

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

它对我有用

答案 1 :(得分:2)

要解决此问题,您只需访问此链接

即可

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

滚动到底部并用最新版本替换您的依赖项。

示例:如果之前您的依赖项是

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

然后替换它(在发布答案时,最新的 2.4.7

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