您的位置:首页 > 运维架构 > Apache

Unable to execute dex: Multiple dex files define Lorg/apache/commons/collections/FastHashMap;

2015-03-29 10:17 555 查看
android在打包的时候出错,昨天晚上还好好的,今天早上起床后打开项目就出错了,网上有很多办法都适合,差距太远

异常代码提示:[2015-03-29 10:08:13 - 农产品推广平台] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class

(org.apache.commons.logging.LogFactory$6) that doesn't come with an

associated EnclosingMethod attribute. This class was probably produced by a

compiler that did not target the modern .class file format. The recommended

solution is to recompile the class from source, using an up-to-date compiler

and without specifying any "-target" type options. The consequence of ignoring

this warning is that reflective operations on this class will incorrectly

indicate that it is *not* an inner class.

[2015-03-29 10:08:15 - Dex Loader] Unable to execute dex: Multiple dex files define Lorg/apache/commons/collections/FastHashMap;
[2015-03-29 10:08:15 - 农产品推广平台] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lorg/apache/commons/collections/FastHashMap;

然后就导致打包的时候老是出错

解决办法,找所引用的jar包中,所包含的包或者类有没有重复的,删除重复的就可以了

更多解决办法请参考其他文章:http://blog.csdn.net/mxlxiao7/article/details/8978930
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐