这里有个小坑,API28 不能使用Butterknife最新版本10.0.0,好像是因为Androidx和Android support库不能共存
来源:3-6 客户端封装Activity和Fragment-2

慕侠9374910
2019-01-16
导入依赖Butterknife10.0.0时报错:
Execution failed for task ‘:app:processDebugManifest’.
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:5:5-19:19 to override.
1回答
-
androidx 和 support 的确是不能共存的 因为功能是一样的,但是包名不同。
这个没法,只能降低库的版本,这是因为他最新库引用了最新的androidx。
这个就算是升级了项目的support为androidx,也有一些其他第三方库还是老的support,没法完全解决。
122019-01-16
相似问题