Android studio 哪里是com.android.support:AnimatedVector drawable?(安卓工作室)

Android studio 哪里是com.android.support:AnimatedVector drawable?(安卓工作室),android-studio,gradle,version,dex,Android Studio,Gradle,Version,Dex,在build.gradle(Module:app)myimplementation'com.android.support:appcompat-v7:27.1.1'中,红色下划线表示版本与com.android.support不匹配:动画向量可绘制(显然是v24)。不过,我在项目中的任何地方都找不到名为vector drawable的内容。只要红色标记仍然存在,应用程序就不会启动,表示它无法合并dex 应用程序等级如下所示: apply plugin: 'com.android.applicat

build.gradle(Module:app)
my
implementation'com.android.support:appcompat-v7:27.1.1'
中,红色下划线表示版本与
com.android.support不匹配:动画向量可绘制
(显然是v24)。不过,我在项目中的任何地方都找不到名为
vector drawable
的内容。只要红色标记仍然存在,应用程序就不会启动,表示它无法
合并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
,或者其他)

因此,只需添加另一个引用动画矢量drawable的实现:

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

确保在顶级
build.gradle中包含
google()
repository