Android编译遇到-Unable to execute dex: Cannot merge new index 65761 into a non-jumbo instruction!
来源:互联网 发布:知柏地黄丸方歌 编辑:程序博客网 时间:2024/06/06 02:55
Android编译遇到-Unable to execute dex: Cannot merge new index 65761 into a non-jumbo instruction!错误
当APP功能越来越庞大,代码以及方法会越来越多,早期的Dalvik VM内部使用short类型变量来标识方法的id,最大值限制在65535;综合上述因素,代码在安装的时候,不能通过验证,所以安装失败。
最新的Android可能已经解决了这个问题。也就是64k问题
参考:https://code.google.com/p/android/issues/detail?id=40409
While the Dalvik team works on a fix, I’m going to allow disabling of the new dex merger features. Builds will be slower (actually back like they were before) but they’ll work at least. We were looking at a 21.0.1 release so I’m going to do this now and make sure this gets in.
修改project.properties,添加一行:dex.disable.merger=true
可以解决
在project.properties文件中添加下面两个选项也是可以的:
manifestmerger.enabled=true
dex.force.jumbo=true
此方案适合eclipse编译 android studio配置网上有其他解决方法
- Android编译遇到-Unable to execute dex: Cannot merge new index 65761 into a non-jumbo instruction!
- Unable to execute dex: Cannot merge new index 65552 into a non-jumbo instruction!
- 异常分析:Unable to execute dex: Cannot merge new index 71813 into a non-jumbo instruction!
- 关于“Unable to execute dex: Cannot merge new index 65576 into a non-jumbo instruction!”
- Unable to execute dex: Cannot merge new index 67208 into a non-jumbo instruction!解决方案
- Unable to execute dex: Cannot merge new index 65979 into a non-jumbo instruction!
- Unable to execute dex: Cannot merge new index 66827 into a non-jumbo instruction!
- Unable to execute dex: Cannot merge new index 65726 into a non-jumbo instruction!
- Android Error in Eclipse: “Unable to execute dex: Cannot merge new index 66904 into a non-jumbo inst
- com.android.dex.DexIndexOverflowException: Cannot merge new index 66299 into a non-jumbo instruction
- com.android.dex.DexIndexOverflowException: Cannot merge new index 66078 into a non-jumbo instruction
- com.android.dex.DexIndexOverflowException: Cannot merge new index 68257 into a non-jumbo instruction
- Cannot merge new index 66501 into a non-jumbo instruction
- Cannot merge new index 67361 into a non-jumbo instruction
- Cannot merge new index 65636 into a non-jumbo instruction
- cannot merge new index 65555 into a non-jumbo instruction!
- Cannot merge new index 65553 into a non-jumbo instruction
- 使用IDEA开发Android项目时遇到Cannot merge new index into a non-jumbo instruction! 的解决
- $(document).click() 在iphone上不触发事件解决办法
- 1 安装Docker
- /etc/group 改动及生效
- Docker概述
- php设计模式---单例模式
- Android编译遇到-Unable to execute dex: Cannot merge new index 65761 into a non-jumbo instruction!
- Ubuntu14中supervisor的安装及配置
- bzoj4237
- 牛人林达华推荐有关机器学习的数学书籍
- ARM系统开发基础
- java开发C语言解释器:编译并实现IfElse语句逻辑流程
- jQuery插件中为什么要return this.each?
- C语言文本处理列与列之间多一个空格
- cpp 8.11