【问题标题】:Android Studio : Manifest merger failed with multiple errors with material:1.0.0Android Studio:清单合并失败,材料有多个错误:1.0.0
【发布时间】:2019-02-06 13:08:44
【问题描述】:

将implementation 'com.google.android.material:material:1.0.0' 添加到built.gradle 后出现错误

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

分级:

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.

有什么想法要解决吗?

【问题讨论】:

  • 这可能是因为您的支持库没有使用 androidx 依赖项
  • 迁移后,现在一切正常。很多东西要学。谢谢。

标签: android android-gradle-plugin android-manifest


【解决方案1】:

这可能是因为您的支持库没有使用 androidx 依赖项。

迁移到 AndroidX

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-11-24
    • 2016-06-20
    • 2020-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多