gpt4 book ai didi

安卓工作室 : Manifest merger failed with multiple errors with material:1. 0.0

转载 作者:行者123 更新时间:2023-11-29 23:19:51 24 4
gpt4 key购买 nike

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

Android Studio: list 合并因多个错误而失败

Gradle :

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 依赖项。

迁移到 AndroidX

关于安卓工作室 : Manifest merger failed with multiple errors with material:1. 0.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54554413/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com