com.android.support:animated-vector-drawable 位于何处? (Android 工作室)

Where is com.android.support:animated-vector-drawable located? (Android Studio)

build.gradle (Module:app) 中,我的 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'

这可能是因为依赖关系,(很可能是你的com.master.android:glideimageview:1.0,或者其他)。

所以,只需添加另一个引用 animated-vector-drawable 的实现:

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

确保在您的顶级 build.gradle

中包含 google() 存储库