Unable to execute dex: java.nio.BufferOverflowException
来源:互联网 发布:android书籍推荐 知乎 编辑:程序博客网 时间:2024/05/16 00:38
Unable to execute dex: java.nio.BufferOverflowException
当运行项目时出现以下错误:
[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.
你可能直接import 导入的代码,代码本身会在项目下面建立一个依赖包:Android Dependencies;在eclipse中直接右键 Build Path 中将Android Dependenciesremove掉就可以了.
以前的.classpath 文件内容:
<?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> <classpathentry kind="src" path="src"/> <classpathentry kind="src" path="gen"/> <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/> <classpathentry kind="lib" path="libs/achartengine-1.1.0.jar"/> <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/> <classpathentry kind="output" path="bin/classes"/> </classpath>
<?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src"/> <classpathentry kind="src" path="gen"/> <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> <classpathentry kind="lib" path="libs/achartengine-1.1.0.jar"/> <classpathentry kind="output" path="bin/classes"/> </classpath>
然后项目右键 Refresh , clean project 就可以运行了。
问题总结:
对于这个问题,发现在升级SDK Tool到22.3之后,也就是Android 4.4的SDK及工具之后,加载之前老版本的项目都会出现这个问题;
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.
- 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
- Dex Loader Unable to execute dex: java.nio.BufferOverflowException
- eclipse运行程序 Unable to execute dex: java.nio.BufferOverflowException
- android错误:Unable to execute dex: java.nio.BufferOverflowException.Check
- android错误:Unable to execute dex: java.nio.BufferOverflowException.Check
- Unable to execute dex: java.nio.BufferOverflowException 解决办法
- Unable to execute dex: java.nio.BufferOverflowException.解决办法
- Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse
- android Unable to execute dex: java.nio.BufferOverflowException错误
- Makefile中的wildcard用法
- sigle end and differential primary
- java实现定时任务的三种方法
- javah的使用:有包名与无包名的类生成.h头文件
- Js和C#中的字符串编码解码
- Unable to execute dex: java.nio.BufferOverflowException
- OpenGL ES着色器语言之操作数(官方文档第五章)
- 《构建跨平台APP:jQuery Mobile移动应用实战》目录
- Scripts:sess_users_by_cursors.sql
- Replace Matches with Replacements Generated in Code (用函数作为替换体来替换匹配)
- 在2048里能够得到的最大的数是多少?
- SpringAOP直接自己实现Advice
- Unity3D合并材质球
- OpenGL ES着色器语言之构造器(Constructor)