编译出错

2021-10-23  本文已影响0人  GaoXiaoGao
Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from [androidx.core:core:1.5.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:6:5-34:19 to override.

在清单application下添加以下代码就好了

android:appComponentFactory=""
tools:replace="android:appComponentFactory"
上一篇 下一篇

猜你喜欢

热点阅读