Где находится com.android.support:animated-vector-drawable? (Android Studio) - PullRequest
0 голосов
/ 25 июня 2018

В build.gradle (Module:app) my implementation 'com.android.support:appcompat-v7:27.1.1' подчеркнуто красным, говоря о несоответствии версий с com.android.support:animated-vector-drawable (что, по-видимому, v24).Я не могу найти ничего с именем vector-drawable в любом месте проекта.Приложение не запустится, пока остается красная маркировка, заявив, что оно не может merge dex.

Оценка приложения выглядит следующим образом:

apply plugin: 'com.android.application'

apply plugin: 'kotlin-android'

apply plugin: 'kotlin-android-extensions'



android {
    compileSdkVersion 27
    defaultConfig {
    applicationId "com.healthandchocolate.sjostedtafzelius.healthchocolateandroid"
    minSdkVersion 21
    targetSdkVersion 27
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    multiDexEnabled true
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

    }
}
}

dependencies {
//FIREBASE
implementation 'com.google.firebase:firebase-database:10.0.1'
implementation 'com.google.firebase:firebase-core:10.0.1'

//GLIDE for images
/*
compile 'com.github.bumptech.glide:glide:4.2.0'
kapt 'com.github.bumptech.glide:compiler:4.2.0'
compile 'com.android.support:support-compat:27'
annotationProcessor 'com.github.bumptech.glide:compiler:4.7.1'
*/
compile 'com.master.android:glideimageview:1.0'

implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.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'

//FORCES 27. RESOLVES VERSION CONFLICT
configurations.all {
    resolutionStrategy {
        force 'com.android.support:support-annotations:26.+'
    }
}
}

apply plugin: 'com.google.gms.google-services'
apply plugin: 'kotlin-kapt'

1 Ответ

0 голосов
/ 25 июня 2018

Вероятно, это из-за зависимостей (скорее всего, ваш com.master.android:glideimageview:1.0 или, возможно, другой).

Итак, просто добавьте еще одну реализацию, которая ссылается на animated-vector-drawable:

implementation 'com.android.support:animated-vector-drawable:27.1.1'

Убедитесь, что репозиторий google() включен в ваш верхний уровень build.gradle

...