Как решить "Gradle не удалось решить"? - PullRequest
0 голосов
/ 17 апреля 2020

Не могу скомпилировать и не вижу в моей библиотеке.

Ошибка

gradle failed resolve `com.theartofdev.edmodo:android-image-cropper:+” Compilation fails.

build.gradle код

apply plugin: 'com.android.application'
android {
    compileSdkVersion 23
    buildToolsVersion "23.0.1"

    defaultConfig {
        applicationId "com.example.backuppc.breathanalyzer"
        minSdkVersion 23
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"

    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

Зависимости

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.4.0'
    compile 'com.android.support:support-v4:23.4.0'
    compile 'com.android.support:design:23.4.0'
    compile 'com.android.support:recyclerview-v7:23.4.0'
    compile 'com.android.support:cardview-v7:23.4.0'
    compile 'com.theartofdev.edmodo:android-image-cropper:+'

}

1 Ответ

0 голосов
/ 17 апреля 2020

Пожалуйста, замените

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

на последнюю версию

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

Пожалуйста, убедитесь, что зависимость имеет последнюю версию. Вы можете получить последнюю версию здесь: https://bintray.com/package/files/arthurhub/maven/Android-Image-Cropper?order=asc&sort=name&basePath=com%2Ftheartofdev%2Fedmodo%2Fandroid-image-cropper&tab=files

Надеюсь, это поможет ..

...