今天在网上下载了一个Demo,导入运行时报错,信息如下:
[2015-03-01 21:09:24 - Dex Loader] Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.
[2015-03-01 21:09:24 - BinderService] Conversion to Dalvik format failed: Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.
原因:由于高版本(我的是4.4)环境中导入了一个低版本(2.2)工程时导致library jar包冲突
解决方法:build path –> configure build path —> Libraries 删掉旧的SDK, 然后add External JARs,选择高版本SDK即可。
运行报错:Unable to execute dex: java.nio.BufferOverflowException
原文地址:http://blog.csdn.net/u010794180/article/details/44006463