解决Manifest merger failed : Attribute application@appComponentFactory
在将butterknife升级到10.0.0的时候遇到问题,编译无法通过。
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 <application> element at AndroidManifest.xml:11:5-34:19 to override.
经过查阅资料后得知是butterknife在10.0.0的时候引用的AndroidX,而AndroidX无法与support支持包共存导致了该错误。谷歌在api28之后将不在提供support的支持包。以后将使用AndroidX来整合代替。
解决方法1
在gradle.properties中添加如下
suppport_library_version=28.0.0
android.useDeprecatedNdk=true
android.useAndroidX=true
android.enableJetifier=true
解决方法2
需要你的项目build.gradle中的插件版本要在3.2.0以上
解决Manifest merger failed : Attribute application@appComponentFactory相关推荐
- Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.Cor
报错信息 Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.ap ...
- AndroidStudio报错Manifest merger failed : Attribute application@allowBackup
项目很久没打开了,今天打开报错,from一个引入的库. 先尝试更新的库,没有改善 查询Manifest merger failed : Attribute application 发现应该添加引用 这 ...
- Manifest merger failed : Attribute application@allowBackup value=(false) 解决方法
导入开源库出现上述错误 处理方法 在manifest中添加 xmlns:tools="http://schemas.android.com/tools" 然后在 applicati ...
- Android 引用第三方开源库,出现冲突 Manifest merger failed : Attribute application@icon value=...
2019独角兽企业重金招聘Python工程师标准>>> 引入开源组件 然后sync now 冲突报错 这应该是 icon 冲突 在 AndroidManifest.xml中添加 to ...
- Manifest merger failed : Attribute meta-data#android.support.VERSION@value..
在添加leakcanary依赖时出现如下问题 Manifest merger failed : Attribute meta-data#android.support.VERSION@value va ...
- 【Android】【Gradle】解决Manifest merger failed问题
这种问题一般是由于,项目有多个模块时,不同模块的manifest文件设置有冲突造成的 当只有一个模块的时候,也有可能和AndroidSDK发生冲突,出现同样的问题 可以通过以下方法来解决: 在mani ...
- 解决Manifest merger failed with multiple errors方法
1. 问题原因 升级到android studio 3.5之后Android Support库和AndroidX库存在不兼容的问题 2. 解决方法 2.1 方案一:取消对androidx库的依赖 第一 ...
- Android Manifest merger failed with multiple errors参考解决方法
判断报错类别 Android Manifest merger failed with multiple errors , see logs 主要分为俩类(个人遇见的情况): 与引入的其他库中的Mani ...
- react-native 编译出错 —— Manifest merger failed
Manifest merger failed -- Androidx 中间尝试了很多方式,都不行!比如 manifest/application中添加 android:appComponentFact ...
最新文章
- 小米手机无法连接eclipse调试案例
- 数据密集型应用系统设计 [Designing Data-Intensive Applications]
- Unity-2017.2官方实例教程Roll-a-ball(一)
- boost::iostreams::example::container_source用法的测试程序
- PHP中类明明存在 但class_exists 确检测不到的坑: 使用完整命名空间
- Mac OS安装octave出现的问题-'error:terminal type set to 'unknown'的解决'
- http并发,操作系统如何识别对应的进程,线程请求
- ASP.NET - Eval使用自定义的方法
- vue 中 v-bind 合并行为
- 用来向登录页面输出验证码图片的一般处理程序页面
- 指定某个git的版本代码拉取新的分支
- 大学最应该学习的 5 门课, 毕业后大厂 Offer 直接拿到手软!
- 在Python中将图像转换为ASCII字符图
- Java导出excel表格,数字数据带E
- STM32 CANbootloader 升级功能开发(3)逻辑功能开发
- Vue引入第三方字体
- Adobe DMP的一些设计
- 401状态码的含义和处理
- UNITY 虚拟相机 Cinemachine 第三人称视角 新输入系统 超简单
- 生成特定架构内核cscope数据库