Attribute application@appCompone

2022-12-19  本文已影响0人  因为我的心

一、前言:

项目异常:

Error:
Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from [androidx.core:core:1.5.0-alpha02] 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-19:19 to override.

image.png

解决方案:
gradle.properties文件中添加

android.enableJetifier=true 

然后重新编译运行即可

image.png
上一篇 下一篇

猜你喜欢

热点阅读