本文介绍了com.android.dx.util.DexException:多DEX文件定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用蚂蚁释放和得到这个错误:

I use ant release and got this error:

   [dx] UNEXPECTED TOP-LEVEL EXCEPTION:
   [dx] com.android.dx.util.DexException: Multiple dex files define Lcom/android/vending/billing/IMarketBillingService;
   [dx]     at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:580)
   [dx]     at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:538)
   [dx]     at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:519)
   [dx]     at com.android.dx.merge.DexMerger.mergeDexBuffers(DexMerger.java:168)
   [dx]     at com.android.dx.merge.DexMerger.merge(DexMerger.java:186)
   [dx]     at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:300)
   [dx]     at com.android.dx.command.dexer.Main.run(Main.java:232)
   [dx]     at com.android.dx.command.dexer.Main.main(Main.java:174)
   [dx]     at com.android.dx.command.Main.main(Main.java:91)

我有same错误,但答案没有帮助我

我试过:


  • 重新安装Android SDK中其他目录

  • 删除斌/ GEN迪尔斯和清洁项目

  • 删除和添加Eclipse库

  • 从更改的Andr​​oid API 17至10


  • Reinstall android sdk to other dir
  • Remove bin/gen dirs and clean project
  • Remove and add libs in eclipse
  • Change android API from 17 to 10
  • Make sure my bin folder is not included in my build path

我有1个主项目和2 LIB项目(Facebook和扩展文件下载)

I have 1 main project and 2 lib projects (Facebook and Expansion files downloader)

谢谢解答!

推荐答案

请检查包中包括COM /安卓/自动售货机/计费/ IMarketBillingService是给定的两倍或以上的项目设置。

Please check if the package includes com/android/vending/billing/IMarketBillingService is reference twice or more in your project settings.

这篇关于com.android.dx.util.DexException:多DEX文件定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 05:29