Android Studio:清单合并由于材料:1.0.0的多个错误而失败 [英] Android Studio : Manifest merger failed with multiple errors with material:1.0.0

查看:148
本文介绍了Android Studio:清单合并由于材料:1.0.0的多个错误而失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在build.gradle中添加implementation 'com.google.android.material:material:1.0.0'之后,我出现了错误

After adding implementation 'com.google.android.material:material:1.0.0' into built.gradle I've got an error

Android Studio:清单合并失败,并出现多个错误

Android Studio : Manifest merger failed with multiple errors

等级:

apply plugin: 'com.android.application'

apply plugin: 'kotlin-android'

apply plugin: 'kotlin-android-extensions'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "com.xyz.yzt"
        minSdkVersion 15
        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'
        }
    }
}

dependencies {
    api fileTree(dir: 'libs', include: ['*.jar'])
    api "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    api 'com.android.support:appcompat-v7:28.0.0'
    api 'com.android.support:support-v4:28.0.0'
    api 'com.android.support.constraint:constraint-layout:1.1.3'
    api 'com.android.support:design:28.0.0'
    api 'com.google.android.gms:play-services-maps:16.0.0'
    api 'com.android.support:cardview-v7:28.0.0'
    api 'com.android.support:gridlayout-v7:28.0.0'
    api 'com.android.support:recyclerview-v7:28.0.0'
    api 'com.google.android.gms:play-services-maps:15.0.1'
    api 'com.google.android.gms:play-services-places:16.0.0'
    api 'com.google.android.gms:play-services:12.0.1'
    api 'com.android.support:multidex:1.0.3'
    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'
    implementation 'me.zhanghai.android.materialratingbar:library:1.3.2'
    implementation 'com.google.maps.android:android-maps-utils:0.4+'
    implementation 'com.karumi:dexter:5.0.0'
    implementation 'com.google.android.material:material:1.0.0'

}

错误始于:

org.gradle.execution.MultipleBuildFailures: Build completed with 1 failures.

有什么想法可以解决吗?

Any ideas to resolve?

推荐答案

这可能是因为您没有将androidx依赖项用于支持库.

This might be because you don't use androidx dependencies for your support libraries.

迁移到AndroidX

Migrate to AndroidX

这篇关于Android Studio:清单合并由于材料:1.0.0的多个错误而失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆