首页 > 解决方案 > 清单合并失败

问题描述

添加依赖项

/*for clevertap*/
    implementation 'com.clevertap.android:clevertap-android-sdk:3.6.4'
    implementation 'com.android.installreferrer:installreferrer:1.0'

然后在设备中运行项目时得到

Manifest merger failed : Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from [androidx.core:core:1.1.0] AndroidManifest.xml:24:18-86
    is also present at [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 value=(android.support.v4.app.CoreComponentFactory).
    Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:9:5-46:19 to override.

标签: android

解决方案


只需在您的项目清单应用程序标签中添加以下代码。

<application
        tools:node="replace">

推荐阅读