Unable to execute dex: Multiple dex files define 的解决方法

我们在引入library时可能会出现这个错误

比如:
  [2013-11-05 14:22:15 - Dex Loader] Unable to execute dex: Multiple dex files define Lcom/mobile/appstore/listjar/sdk/R$anim;
  [2013-11-05 14:22:15 - TabHostSample] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/mobile/appstore/listjar/sdk/R$anim;

  可以很确切的说肯定是 包含了 两个相关的R.anim的资源文件。

  我的解决办法是在构建路径中删jar包,我把library项目中的构建路径中的jar删了后就好了,私有的lib不用管它。总之,这个问题肯定是文件重复了,在lib和构建路径中折腾下肯定会弄好的。

posted @ 2014-07-31 23:59  developer_Kale  阅读(619)  评论(0编辑  收藏  举报
网站流量统计工具