Unable|Unable to merge dex错误
原因
第三方lib库中有support-v4
库或support-v7库
这些库和你使用的support-v4
,support-v7
库版本不一致,导致as打包时合并dex失败
并且as有个神坑,由于V7包依赖V4包,倒入v7包会自动导入v4包,如果第三方的lib也有V4包但是版本和你的不一致就会出现这问题
解决方案:
在引入第三方库或jar时使用,删除第三方提供的android-support-v4.jar
依赖的话,直接移除support包支持
compile('com.arialyy.aria:aria-core:'){
exclude group: 'com.android.support'
}
【Unable|Unable to merge dex错误】或强制让第三方应用使用自己的配置,如图所示:

文章图片
ss
推荐阅读
- com.android.dex.DexIndexOverflowException
- python|python numpy中对ndarry按照index增删改查
- Unable|Unable to add window -- token null is not valid; is your activity running?
- ***|*** Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]
- indexDB讲解与封装
- [iOS]|[iOS] 编译相关知识
- SVN:|SVN: 命令行merge
- 使用ScheduledExecutorService实现延时任务——延时发布视频
- Github 本地合并 (merge) 他人提交的 pr
- 查找函数VLOOKUP、HLOOKUP、MATCH和INDEX