引入RxLifecycle报错

来源:2-13 RxLifecycle配置及使用

骑着面包去草原

2018-11-24

Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91
is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
Suggestion: add ‘tools:replace=“android:appComponentFactory”’ to element at AndroidManifest.xml:6:5-19:19 to override.

看不懂!!!求大神解答!!!

写回答

1回答

雷宇

2018-11-26

在Api 28下,以前的support包都放到androidx下面,同时使用会引起冲突。
并且28会默认导入部分androidx的包。
所以support或androidx,选择一种就行了。发个链接你参考一下:https://www.codetd.com/article/3935876

0
2
红尘_hongcn
果然是androidx的问题啊,早点来看一眼问答就好了,也不至于闷头调了半天的错!
2018-12-27
共2条回复

Kotlin打造完整电商APP 模块化+MVP+主流框架

全网稀缺Kotlin项目实战,打造新一代Android工程师的核心竞争力

694 学习 · 209 问题

查看课程