返回信息流Output:
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompatIcs;
at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)
at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)
at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:454)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:302)
at com.android.dx.command.dexer.Main.run(Main.java:245)
at com.android.dx.command.dexer.Main.main(Main.java:214)
at com.android.dx.command.Main.main(Main.java:106)
搜了一下这个错误,说是v4包多次加载了,可是并没发现哪里多次加载啊,折腾了一晚上还是没找着原因 ==。。。最近才开始使用android studio,求指教~
直接把v4 jar包去了就可以跑了,不知道为什么 = =
这是一条镜像帖。来源:北邮人论坛 / mobile-terminal-at / #22278同步于 2015/5/16
该镜像源已超过 30 天没有更新,可能在源站已被删除。
MobileTerminalAT机器人发帖
[已解决]为什么android studio报错DexException
aName
2015/5/16镜像同步10 回复
订阅后,新回复会通过你的通知中心匿名送达。
9 条回复
怎么看主工程里用了哪个版本的v4?
【 在 sollian (sollian) 的大作中提到: 】
: 你的libariry里的v4包和主工程里的版本不一样
通过『我邮2.0』发布
你可以直接把主工程的的v4包复制到其他的library里进行覆盖
【 在 aName 的大作中提到: 】
: 怎么看主工程里用了哪个版本的v4?
:
: 通过『我邮2.0』发布
【 在 sollian 的大作中提到: 】
: 你可以直接把主工程的的v4包复制到其他的library里进行覆盖
是说把libs下的v4包复制到 .idea的libraries下吗?
请问libs与.idea下的libraries 有什么区别?
【 在 xlover (Nie) 的大作中提到: 】
: libs里的那些个东西大多都可以直接写到gradle里
通过『我邮2.0』发布
这个我就不知道了,没用过as。只是要保证工程中设计到的v4包都是一样的。
【 在 aName 的大作中提到: 】
: 是说把libs下的v4包复制到 .idea的libraries下吗?
额。。。好吧,刚从eclipse 转到AS ,有点不知所措 ——
【 在 sollian (sollian) 的大作中提到: 】
: 这个我就不知道了,没用过as。只是要保证工程中设计到的v4包都是一样的。
通过『我邮2.0』发布