mbstr 2017-06-29 04:54 采纳率: 100%
浏览 2145
已采纳

android stuido 求大神指点 Gradle build finished

UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Lcom/lidroid/xutils/task/TaskHandler;
at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:594)
at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:552)
at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:533)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:170)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:188)
at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:439)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:287)
at com.android.dx.command.dexer.Main.run(Main.java:230)
at com.android.dx.command.dexer.Main.main(Main.java:199)
at com.android.dx.command.Main.main(Main.java:103)

FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:dexDebug'.

    com.android.ide.common.internal.LoggedErrorException: Failed to run command:
    D:\Android\android-studio\sdk\build-tools\android-4.4W\dx.bat --dex --num-threads=4 --output E:\一点通\新闻客户端APP\code\android\XMRBApp\app\build\intermediates\dex\debug E:\一点通\新闻客户端APP\code\android\XMRBApp\app\build\intermediates\classes\debug E:\一点通\新闻客户端APP\code\android\XMRBApp\app\build\intermediates\dependency-cache\debug E:\一点通\新闻客户端APP\code\android\XMRBApp\app\build\intermediates\pre-dexed\debug\baseproject-c56c14be9943929c5c5813d4553338c6b5b2977e.jar E:\一点通\新闻客户端APP\code\android\XMRBApp\app\build\intermediates\pre-dexed\debug\classes-1f8f8478b937dc74b01aabab03122fad3284ca52.jar E:\一点通\新闻客户端APP\code\android\XMRBApp\app\build\intermediates\pre-dexed\debug\classes-1ff5837b36cb81358fc0327eb8469bcf0233db7d.jar
    Error Code:
    2
    Output:

    UNEXPECTED TOP-LEVEL EXCEPTION:
    com.android.dex.DexException: Multiple dex files define Lcom/lidroid/xutils/task/TaskHandler;
    at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:594)
    at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:552)
    at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:533)
    at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:170)
    at com.android.dx.merge.DexMerger.merge(DexMerger.java:188)
    at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:439)
    at com.android.dx.command.dexer.Main.runMonoDex(Main.java:287)
    at com.android.dx.command.dexer.Main.run(Main.java:230)
    at com.android.dx.command.dexer.Main.main(Main.java:199)
    at com.android.dx.command.Main.main(Main.java:103)

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED
求大神指点!!!感谢感谢

  • 写回答

2条回答 默认 最新

  • 珠穆朗玛小王子 博客专家认证 2017-06-29 07:01
    关注

    TaskHandler重复定义(有多个) 很有可能是你重复引用了jar包或者是工程 再仔细的检查一下的你的代码把

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 R语言爬虫的时候元素和园代码不一样怎么解决呀
  • ¥15 VS2022多项目启动有问题
  • ¥15 SQL删除添加数据后序号不连续问题。
  • ¥15 首次运行OmniEvent运行报错
  • ¥15 有没有人知道这个问题怎么解决
  • ¥15 comsol电力电缆载流量仿真
  • ¥15 webSocket可以接TCP socket接口吗
  • ¥60 mpi并行出错,CFD++计算
  • ¥15 c#:vsto,powerpoint的外接程序中换主题颜色
  • ¥15 状态机/汽车转向灯/Sateflow