[英]Android Eclipse Multiple Dex Files Error
I have been getting this error when trying to launch my android project, it didn't happen before, and started to happen randomly. 尝试启动我的android项目时,我一直收到此错误,以前从未发生过,而是随机发生。 I didn't even update anything between when it was working and now.
从工作到现在,我什至没有更新任何内容。 The error is:
错误是:
[2013-01-24 18:06:28 - Dex Loader] Unable to execute dex: Multiple dex files define Lorg/opendatakit/sensors/AbstractSensorDriverDiscovery;
[2013-01-24 18:06:28 - opendatakit.sensors] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lorg/opendatakit/sensors/AbstractSensorDriverDiscovery;
I know people have experienced this problem before, but most of the issues I have seen were from over a year ago, typically dealing with ADT r14. 我知道人们以前曾遇到过此问题,但是我看到的大多数问题都是一年多以前的,通常是与ADT r14有关的。 I am using Eclipse 4.3.0 with ADT r17.
我将Eclipse 4.3.0与ADT r17一起使用。 I have not seen anyone dealing with these problems with these versions.
我还没有看到有人用这些版本处理这些问题。 Has this been solved by anyone?
有没有人解决过的?
The other solutions I have seen, in posts like Unable to execute dex: Multiple dex files define Lcom/myapp/R$array; 我在“ 无法执行dex”之类的帖子中看到了其他解决方案:多个dex文件定义了Lcom / myapp / R $ array; , have not been of any use to me.
,对我没有任何用处。
If anyone has any advice on the subject I would greatly appreciate it. 如果有人对这个问题有任何建议,我将不胜感激。
I ended up finding the error to this problem after much heartache. 经过多次心痛,我最终找到了此问题的错误。 For some reason, a global folder had been included in my project and was being built into my project each time.
由于某种原因,全局文件夹已包含在我的项目中,并且每次都被构建到我的项目中。 This folder contained the same jar that I had in my libs folder and that was causing a conflict.
该文件夹包含与我的libs文件夹相同的jar,这引起了冲突。
If anyone else has this problem, ensure you only have one jar file in the project. 如果其他人遇到此问题,请确保项目中只有一个jar文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.