[英]Android Manifest merger failed || Manifest merger failed with multiple errors, see logs
我正在使用Firebase开发应用程序。 我遇到了一个需要解决的问题。 当我去运行该应用程序时,它将显示在build中 。
清单合并失败:[com.android.support:support-compat:28.0.0]的属性application @ appComponentFactory value =(android.support.v4.app.CoreComponentFactory)来自AndroidManifest.xml:22:18-91 [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value =(androidx.core.app.CoreComponentFactory)。 建议:在AndroidManifest.xml:10:5-31:19的元素上添加'tools:replace =“ android:appComponentFactory”'以进行覆盖。
我搜索了整个互联网以解决问题。 我还加了
tools:replace="android:appComponentFactory"
在AndroidManifest.xml文件中。 我也遵循了这个问题的答案。 但这对我说没用
清单合并失败,出现多个错误,请参阅日志
我怎么解决这个问题。 我现在应该怎么办。
可构建
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.offtechitbd.e_orderapp"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:design:28.0.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'
implementation 'com.google.firebase:firebase-core:11.8.0'
implementation 'com.google.firebase:firebase-database:11.8.0'
implementation 'com.google.firebase:firebase-storage:11.8.0'
implementation 'com.firebaseui:firebase-ui-database:3.2.2'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.+'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'de.hdodenhof:circleimageview:3.0.0'
implementation 'io.paperdb:paperdb:2.6'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
}
apply plugin: 'com.google.gms.google-services'
-尝试将此行添加到清单中的应用程序标签。
tools:replace="android:appComponentFactory"
android:appComponentFactory="androidx"
实际上我正在使用implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.+'
和android-image-cropper:2.8.+'
是Update来支持AndroidX的库。 所以我只是将版本更改为
实现'com.theartofdev.edmodo:android-image-cropper:2.7.0'
现在,该应用程序运行正常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.