Проблема с добавлением ShowcaseView API в gradle

Когда я пытаюсь добавить API-интерфейс ShowcaseView в gradle, у меня возникает ошибка -

All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 28.0.0, 23.1.1. Examples include com.android.support:animated-vector-drawable:28.0.0 and com.android.support:support-v4:23.1.1 less... (Ctrl+F1) Inspection info:There are some combinations of libraries, or tools and libraries, that are incompatible, or can lead to bugs. One such incompatibility is compiling with a version of the Android support libraries that is not the latest version (or in particular, a version lower than your targetSdkVersion). Issue id: GradleCompatible

в зависимости:изображение

"implementation 'com.android.support:appcompat-v7:28.0.0'"

Это мой град.

apply plugin: 'com.android.application'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "com.snailp4el.android.tatoeba"
        minSdkVersion 19
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    dataBinding {
        enabled = true
    }
}

dependencies {
    implementation 'com.android.support:support-annotations:28.0.0'
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation 'com.android.support:design:28.0.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    implementation 'org.jsoup:jsoup:1.11.3'
    implementation 'org.jsoup:jsoup:1.11.3'
    implementation 'com.ichi2.anki:api:1.1.0alpha6'
    implementation 'com.github.amlcurran.showcaseview:library:5.4.3'

}

Можете ли вы объяснить мне, что я делаю неправильно? И как добавить API ShowcaseView в мой проект. Заранее спасибо.

0
0
72
1
Перейти к ответу Данный вопрос помечен как решенный

Ответы 1

Ответ принят как подходящий

В настоящее время у меня была такая же проблема всего несколько минут назад. Похоже, библиотека showcaseview не поддерживает «реализация com.android.support:appcompat-v7:28.0.0»

Мое исправление состояло в том, чтобы понизить мой «compileSdkVersion 28» до «compileSdkVersion 26». Вам также может понадобиться изменить все ваши реализации на 26 вместо 28.

implementation 'com.android.support:support-annotations:28.0.0' <== CHANGE TO 26.0.0
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0' <== CHANGE TO 26.0.0
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:design:28.0.0' <== CHANGE TO 26.0.0

Я полагаю, что это будет временно, пока библиотека не будет обновлена ​​​​для поддержки версии sdk 28 выше. Привет!

Другие вопросы по теме