在使用android开发及测试过程中,出现了以下错误
1.使用junit测试时出现不能打包
[2014-01-16 20:23:35 - Dex Loader] Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.
[2014-01-16 20:23:35 - PLay_TV1] Conversion to Dalvik format failed: Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.
[2014-01-16 20:25:09 - PLay_TV1] Dx
原因及解决方法:
1)直接import的代码,代码本身会在你的项目下建立一个依赖包 Android Dependencies,在eclipse中右键这个工程文件夹,在Build Path选项中选择 remove it from build path
2)缺少libs,查看有无缺少
2.安装时出现"INSTALL_FAILED_ACWF_INCOMPATIBLE"
原因及解决方法:
1)安装出错,重新卸载,使用命令"adb uninstall xxx.xxx.xxx”
卸载再安装即可成功
2)存储空间不够,清理些内存,再次安装