Dex Loader Unable to execute dex: java.nio.BufferOverflowException

晚上在Eclipse下运行之前的一个Android项目时,老是提示java.nio.BufferOverflowException错误:

[2014-04-25 09:28:33 - Dex Loader] Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.
[2014-04-25 09:28:33 - Android-hello] Conversion to Dalvik format failed: Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.


项目在下午在公司运行的还好好的了,晚上在家电脑上就运行不起来了,很奇怪。Google了一下找的解决办法了:

去除依赖包 Android Dependencies,在Eclipse中右键这个文件夹,在Build Path选项中选择  remove it from build path

步骤如下:

Dex Loader Unable to execute dex: java.nio.BufferOverflowException_第1张图片



Dex Loader Unable to execute dex: java.nio.BufferOverflowException_第2张图片


SDK升级到最新的API19之后会在你的项目下建立一个依赖包 Android Dependencies,在eclipse中右键这个文件夹,在Build Path选项中选择 remove it from build path,再运行项目就好啦!








你可能感兴趣的:(Android)