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