[置顶] 让导入的Android项目,运行起来的方法。

Eclipse里面直接import的代码,不能运行出现如下错误:

[2013-12-12 12:58:55 - Dex Loader] Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.

[2013-12-12 12:58:55 - PushBox] Conversion to Dalvik format failed: Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.


直接import的代码,代码本身会在你的项目下
建立一个依赖包  Android Dependencies,在eclipse中右键这个工程文件夹,
在Build Path选项中选择  remove it from build path。这样以来,就运行起来了。





原文地址:https://www.cnblogs.com/riasky/p/3471412.html