Unable to execute dex: java.nio.BufferOverflowException.解决办法
来源:互联网 发布:家里网络接线盒没连 编辑:程序博客网 时间:2024/04/30 08:05
异常提示:
[2014-01-16 09:27:35 - Dex Loader] Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.
[2014-01-16 09:27:35 - tab_demo] Conversion to Dalvik format failed: Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.
[2014-01-16 09:27:35 - tab_demo] Conversion to Dalvik format failed: Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.
错误原因:
出现这个错误是因为项目中了引用了两个相同的jar包。
解决办法:
我们只需要将相同jar文件中重复的一个去除即可,详细步骤是:右键项目——Build Path——Configure Build Path...——Libriaries,然后我们在Libraries中将出现的相同jar文件去除一个,点击ok即可修复项目异常,通常我都是直接将Android Private Libraries删掉就行了,但是这样做只是临时性的修复,每当我重启eclipse的时候,eclipse就会自动再载入一次相同的jar文件,重新触发异常,所以大家也可以试试楼下评论的方法:卸载掉19版本的build tools,安装18.1.1及以下版本的build tools。
右键选择项目,选择Build Path——Configure Build Path...,然后在弹出框中选择:Java Build Path——Libraries,最后将Android Dependencies和Android Private Libraries移除(remove)掉即可。 我遇到这种问题的时候,Android Dependencies和Android Private Libraries里面都没有我项目所需的库,所以我remove掉之后不需要重新添加jar包,但是如果你的Android Dependencies和Android Private Libraries里面有项目所需的库的话,需要你重新引入,否则项目会报错,jar引入:右键选择lib中的jar文件选择Add Build Path即可。
0 0
- Unable to execute dex: java.nio.BufferOverflowException 解决办法
- Unable to execute dex: java.nio.BufferOverflowException.解决办法
- Unable to execute dex: java.nio.BufferOverflowException.解决办法
- Unable to execute dex: java.nio.BufferOverflowException.解决办法
- Unable to execute dex: java.nio.BufferOverflowException.解决办法
- Android Unable to execute dex: java.nio.BufferOverflowException.解决办法
- Unable to execute dex: java.nio.BufferOverflowException.解决办法
- Unable to execute dex: java.nio.BufferOverflowException.解决办法
- Unable to execute dex: java.nio.BufferOverflowException.解决办法
- Unable to execute dex: java.nio.BufferOverflowException.解决办法
- Unable to execute dex: java.nio.BufferOverflowException.解决办法
- Unable to execute dex: java.nio.BufferOverflowException
- Unable to execute dex: java.nio.BufferOverflowException
- Unable to execute dex: java.nio.BufferOverflowException
- Unable to execute dex: java.nio.BufferOverflowException
- Unable to execute dex: java.nio.BufferOverflowException.
- Unable to execute dex: java.nio.BufferOverflowException.
- Unable to execute dex: java.nio.BufferOverflowException.
- erlang 资料收集
- Java开发人员最常用19个Linux命令
- warning: deprecated conversion from string constant to "char *"
- Objective-C 使用点语法调用getters和setters
- asp.net mvc中的MVC彼此关联性
- Unable to execute dex: java.nio.BufferOverflowException.解决办法
- jQuery学习笔记3----ajax基础
- 自定义带图片按钮的实现。
- LeetCode OJ 之 Length of Last Word(求最后一个单词的长度)
- 第11周项目6-回文、素数-回文数
- 负值之美:负margin在页面布局中的应用
- 和为n连续正数序列 【微软面试100题 第五十一题】
- 类的成员函数的指针
- C#中的特性 和 通过反射获取属性上的特性