gpt4 book ai didi

android - Manifest Merger Failed 错误,也是两个同步模块

转载 作者:行者123 更新时间:2023-11-29 18:32:44 27 4
gpt4 key购买 nike

我有一个项目显示一些 Manifest merge failed 错误。我尝试了很多解决方案,包括迁移到 androidx,但该项目正在使用一些库,这些库在迁移到 androidx 时显示错误,因此我无法将其迁移到 androidx。请提供此问题的解决方案。另外,这个项目显示了两个同步模块,为什么我不明白。我附上了我的项目错误的屏幕截图。

buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'

repositories {
maven { url 'https://maven.fabric.io/public' }
}

android {
compileSdkVersion 28

defaultConfig {
applicationId "com.appetiser.kookaborrow"
minSdkVersion 19
targetSdkVersion 28
versionCode 114
versionName "1.0.14"
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-
optimize.txt'), 'proguard-rules.pro'
}
debug {
debuggable true
}
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation('com.mikepenz:materialdrawer:5.6.0@aar') {
transitive = true
}
implementation('com.crashlytics.sdk.android:crashlytics:2.6.6@aar') {
transitive = true;
}
implementation('com.stripe:stripe-android:1.0.4@aar') {
transitive = true;
}
implementation('io.fabric.sdk.android:fabric:1.3.14@aar') {
transitive = true;
}
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.nineoldandroids:library:2.4.0'
implementation 'com.daimajia.slider:library:1.1.5@aar'
implementation 'com.android.support:design:28.0.0'
implementation 'com.github.arimorty:floatingsearchview:2.0.3'
implementation 'com.android.volley:volley:1.1.0'
implementation 'com.google.firebase:firebase-appindexing:17.1.0'
implementation 'com.squareup:android-times-square:1.5.0@aar'
implementation 'be.billington.calendar.recurrencepicker:library:1.1.1'
implementation 'com.amazonaws:aws-android-sdk-ec2:2.3.3'
implementation 'com.amazonaws:aws-android-sdk-s3:2.3.3'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.kbeanie:multipicker:1.1.31@aar'
implementation 'com.prolificinteractive:material-calendarview:1.4.2'
implementation 'com.crystal:crystalrangeseekbar:1.1.1'
implementation 'com.thoughtbot:expandablerecyclerview:1.3'
implementation 'com.jakewharton:butterknife:10.1.0'
implementation 'com.android.support:animated-vector-drawable:28.0.0'
implementation 'com.android.support:exifinterface:28.0.0'
implementation 'com.android.support:mediarouter-v7:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.google.android.gms:play-services-maps:16.1.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.1.0'

implementation 'com.mixpanel.android:mixpanel-android:5.1.1'

testImplementation 'junit:junit:4.12'

}

enter image description here

enter image description here enter image description here

最佳答案

你需要在你的 gradle.properties 文件中添加这两行

android.useAndroidX=true
android.enableJetifier=true

关于android - Manifest Merger Failed 错误,也是两个同步模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55507607/

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