Suggestion: add ‘tools:replace=“android:appComponentFactory“‘ to <application>
作者:互联网
原生集成uni-app sdk时候遇到的问题
-86 Error:
Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from [androidx.core:core:1.3.1] 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:5:5-20:19 to override.
解决办法
gradle.properties中添加,新建项目只用android.useAndroidX=true,没有下面那句
android.useAndroidX=true
android.enableJetifier=true
标签:xml,core,app,appComponentFactory,replace,application,AndroidManifest,android,sup 来源: https://blog.csdn.net/nongminkouhao/article/details/120489613