mbstr
mbstr
2017-06-29 04:54

android stuido 求大神指点 Gradle build finished

10
  • gradle
  • android

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条回答