编译Android项目的时候报错Unable to execute dex: java.nio.BufferOverflowException. 解决方案...

原文链接:https://my.oschina.net/qiuzhping/blog/611697

编译Android项目的时候报错Unable to execute dex: java.nio.BufferOverflowException. 解决方案...编译Android项目的时候报错Unable to execute dex: java.nio.BufferOverflowException. 解决方案...编译Android项目老是报这个错误:Unable to execute dex: java.nio.BufferOverflowException,Conversion to Dalvik format failed: Unable to execute dex: java.nio.BufferOverflowException. 坑爹啊自从用了R22后就不得安宁了。

错误描述:

[2013-11-18 10:02:58 - Dex Loader] Unable to execute dex: java.nio.BufferOverflowException.
 Check the Eclipse log for stack trace.
[2013-11-18 10:02:58 - weixin] Conversion to Dalvik format failed: Unable to execute dex:
 java.nio.BufferOverflowException. Check the Eclipse log for stack trace.

分析及解决方案:

由于最新的19版本会在项目下建立一个依赖包 Android Dependencies,在eclipse中右键这个文件夹,在Build Path选项中选择 remove  from build path然后就没问题了 

(com.android.ide.eclipse.adt.DEPENDENCIES) 这个是引用包冲突 


转载于:https://my.oschina.net/qiuzhping/blog/611697

上一篇:fatal: unable to auto-detect email address (got 'CC@LAPTOP-UPQ1N1VQ.(none)')


下一篇:kylin Unable to login, please check your username/password.