eclipse运行时出现Unable to execute dex

eclipse在裕兴工程的时候费时很久,且报了Unable to execute dex的错误,查找了很多原因,最终解决。

是因为我的工程引入了一个jar包(libs目录下),该jar包引用了其他jar,而员工称也引用了这些jar,导致了重复引用。

将院工程中引用到的jar包删除即可编译通过。

在打包的过程中可能会出现这样的问题,原因是有重复的。jar被引用,可以查看你的build path,尤其是Android Dependencies一定有重复引入的.jar包,解决的方法是在libs删除重复的jar即可。

时间: 2024-08-29 20:36:54

eclipse运行时出现Unable to execute dex的相关文章

eclipse:运行 Android 项目时出现 “Unable to execute dex: Multiple dex files define” 解决方法

android 项目在eclipse 出现Unable to execute dex: Multiple dex files define Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define 的原因主要是因为jar包重复导入造成的冲突 这个项目我使用了swipebacklayout的library,library里面已经导入了v7的jar包,项目工程里也有个v7包,解决方法就是将

Unable to execute dex: Java heap space错误解决

今天在在打包android工程时遇到 Unable to execute dex: Java heap space的问题,现在分享一下解决方案 上网找了一下,有两种解决方案: 1. eclipse.int 添加内存 2. 导入工程的jar通过add User Library方式导入 右键工程->build path->add Library->user Library->user Libraries->new->随便取个名字->add JARs->ok 添加

用Eclipse运行Android版APP(PhoneGap)时出现:Unable to execute dex: Multiple dex files define

这两天遇到点小问题,做个记录: 症状:运行,调试时都报:Unable to execute dex: Multiple dex files define错误,发布后的APP安装到手机后一运行,就提示:“程序名 已停止”: 解决方法: 1.项目->properties->java build path->order and export ->去掉:android 4.3.1和android-support-v4.jar的选择: 2.项目->properties->java

运行报错:Unable to execute dex: java.nio.BufferOverflowException

今天在网上下载了一个Demo,导入运行时报错,信息如下: [2015-03-01 21:09:24 - Dex Loader] Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace. [2015-03-01 21:09:24 - BinderService] Conversion to Dalvik format failed: Unable to execut

【转】Unable to execute dex: Java heap space 解决方案(如何为eclipse.int 添加内存)

原文网址:http://blog.csdn.net/zengyangtech/article/details/7003379 欢迎转载,转载请注明 http://blog.csdn.net/zengyangtech/article/details/7003379 今天,在编译一个大工程的时候遇到了问题 Unable to execute dex: Java heap space 上网找了一下,有两种解决方案: 1. eclipse.int 添加内存 2. 导入工程的jar通过 add User

导入项目时,有关[2016-04-03 20:38:02 - Dex Loader] Unable to execute dex: Multiple dex files 问题

最近我在学习androidUI设计,在网上找了一个UI菜单界面开源代码示例,按照步骤导入项目,运行的时候控制台结果报了如下错误: [2016-04-03 20:38:02 - Dex Loader] Unable to execute dex: Multiple dex files define Lcn/w/song/widget/navigation/RollNavigationBar$NavigationBarListener;[2016-04-03 20:38:02 - UseWidget

Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.(转)

1.程序运行后异常显示: 解决方案:在项目上点击右键->properties->Java Build Path, remove掉Android Dependences即可 Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.(转),布布扣,bubuko.com Unable to execute dex: java.nio.BufferOverflowExc

Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.

问题提示:Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.Conversion to Dalvik format failed: Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace. 最新的19版本会在你的项目下建立一个

android Eclipse执行项目提示错误: unable to execute dex: GC orerhead limit exceeded

Eclipse执行项目提示错误: unable to execute dex: GC orerhead limit exceeded 解决方法: 找到Eclipse安装目录的文件,\eclipse\eclipse.ini 打开把 launcher.appendVmargs-vmargs-Dosgi.requiredJavaVersion=1.6-Xms40m-Xmx512m- 修改为: launcher.appendVmargs-vmargs-Dosgi.requiredJavaVersion=