引入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回答
-
在Api 28下,以前的support包都放到androidx下面,同时使用会引起冲突。
并且28会默认导入部分androidx的包。
所以support或androidx,选择一种就行了。发个链接你参考一下:https://www.codetd.com/article/3935876022018-12-27
相似问题