Manifest merger failed with multiple errors, see logs
xmlns:tools="http://schemas.android.com/tools"
application中tools:replace="android:icon,android:theme,android:label"
我本人是其中一种情况,权限导入重复导致
删除重复<uses-permission android:name="xxxx" />
删除后又报错
Manifest merger failed : Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from [androidx.core:core:1.0.0-alpha1] AndroidManifest.xml:22: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:41:5-105:19 to override.
这次是androidx.core.app.CoreComponentFactory与android.support.v4.app.CoreComponentFactory重复,
删除
implementation 'com.android.support:appcompat-v7:xx.xx.xx'
并将所有使用CoreComponentFactory转为同一个androidx.core.app.CoreComponentFactory即可