解决Android单个dex文件不能超过65536个方法问题,DexIndexOverflowException
来源:互联网 发布:js 判断日期大小 编辑:程序博客网 时间:2024/05/23 14:38
部分错误信息:
com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536
1、为什么会出现次问题?
(1)、如果大家的项目中使用了Butterknife-7.0.1.jar ,像我这种英语很差的人,在不同的布局文件中,会使用相同的id,所以在编译项目的时候就报这个错误。
(2)、在导入第三方jar包,A.jar 文件中包含B.jar文件时候,所以在编译项目的时候就报这个错误。
(3)、如果Android studio的java.lang.OutOfMemoryError: GC overhead limit exceeded,所以在编译项目的时候就报这个错误。
2、解决的方法:
(1)、在build.gradle中添加:
(2)你需要添加
multiDexEnabled true 到build.gradle
阅读全文
0 0
- 解决Android单个dex文件不能超过65536个方法问题,DexIndexOverflowException
- 解决Android单个dex文件不能超过65536个方法问题
- 解决Android单个dex文件不能超过65536个方法问题
- 解决Android单个dex文件不能超过65536个方法问题
- 解决Android单个dex文件不能超过65536个方法问题
- 解决Android单个dex文件不能超过65535个方法问题
- 单个dex文件不能超过65535个方法解决方法
- 解决Android中单个dex文件中方法数越界的问题
- Android 解决“com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536”问题
- Android解决“com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536”问题
- 解决“com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536”问题
- 解决“com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536”问题
- 解决单个DEX文件方法数超过65536的解决方案
- Android学习笔记----解决“com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536”问题
- Android学习笔记----解决“com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536”问题
- com.android.dex.DexIndexOverflowException
- 解决com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536
- 解决android打包dex文件方法数溢出的问题
- Android——四大组件之一:BroadcastReceiver 广播接收器
- mc_pos_control.cpp 之 control_offboard(dt)
- Spring MVC 使用支付宝接口DEMO
- android 怎么跳转直接到qq群
- 不常用系统命令
- 解决Android单个dex文件不能超过65536个方法问题,DexIndexOverflowException
- 基于 CentOS 搭建 WordPress
- hdu 6162 Ch’s gift 树链剖分 + 离线查询
- mc_pos_control.cpp 之 control_auto(dt)
- SpringMVC 通过RESTFUL风格进行CRUD
- [10.] iphone/tool
- burpsuite 基本介绍
- mc_pos_control.cpp 之 control_position(dt)
- websphere 8.5.5.12 JSESSIONID 长度