为什么会发生? 我该如何解决? Android:意外的顶级例外:

意外的顶级例外:com.android.dex.DexIndexOverflowException:方法ID不在[0,0xffff]:65536错误:执行失败的任务':app:dexDebug'。

com.android.ide.common.internal.LoggedErrorException:无法运行命令:/ home / pre / develop / / home / prem / currencysave / Android / CurrencySave / app / build / intermediates / dex / debug –input-list = / home / prem / currencysave / Android / CurrencySave / app / build / intermediates / tmp / dex / debug / inputList .txt错误代码:2输出:UNEXPECTED TOP-LEVEL EXCEPTION:com.android.dex.DexIndexOverflowException:方法ID不在[0,0xffff]:65536在com.android.dx.merge.DexMerger $ 6.updateIndex(DexMerger.java :502)at com.android.dx.merge.DexMerger $ IdMerger.mergeSorted(DexMerger.java:277)at com.android.dx.merge.DexMerger.mergeMethodIds(DexMerger.java:491)at com.android.dx。在com.android.dx.merge.DexMerger.merge(DexMerger.java:189)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)

Solutions Collecting From Web of "为什么会发生? 我该如何解决? Android:意外的顶级例外:"