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

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章