`
zhenping
  • 浏览: 79193 次
  • 性别: Icon_minigender_1
  • 来自: 广州
文章分类
社区版块
存档分类
最新评论

编译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) 这个是引用包冲突








分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics