记录个小知识点
androidx在迁移过程中,遇到三方库用的是不是androidx,
需要把
android.useAndroidX=true
android.enableJetifier=false
但是在合并过程中出现:
Manifest merger failed with multiple errors, see logs
一、使用命令行运行:
gradle :app:processDebugManifest --debug
仔细查看日志,找到Error的东西:
会出现 有个错误提示你:
'tools:replace="android:appComponentFactory"
然后在AndroidMenifest.xml中的application标签下添加:
android:appComponentFactory="liucheng"
tools:replace="android:appComponentFactory"
android:appComponentFactory这个里面的字符串任意写
二、butternkife不能用最新的,只能用9.0.0以下的版本,因为10.0.0只支持androidx