在Android Studio中构建项目时,我得到了DexExeption

时间:2015-02-06 22:33:41

标签: java android android-studio

尝试在Android Studio中构建项目时收到此错误。我看过其他帖子有类似的错误,但没有一个专门给出Landroid / support / annotation / AnimRes;作为地方或错误。请帮助,非常感谢。

UNEXPECTED TOP-LEVEL EXCEPTION:
Error:Execution failed for task ':app:dexDebug'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
/Users/ethanraymond/Install Programs/adt-bundle-mac-x86_64-20140624/sdk/build-tools/21.1.2/dx --dex --no-optimize --output /Users/ethanraymond/Software Programming/Projects/Apps/Finger Dodge/Android/dev/FingerDodge/app/build/intermediates/dex/debug --input-list=/Users/ethanraymond/Software Programming/Projects/Apps/Finger Dodge/Android/dev/FingerDodge/app/build/intermediates/tmp/dex/debug/inputList.txt
Error Code:
2
Output:
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Landroid/support/annotation/AnimRes;
    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:303)
    at com.android.dx.command.dexer.Main.run(Main.java:246)
    at com.android.dx.command.dexer.Main.main(Main.java:215)
    at com.android.dx.command.Main.main(Main.java:106)

0 个答案:

没有答案