com.android.dex.DexException: Multiple dex files define Landroid/support/annotation/AnimRes;

JIRA | Łukasz Milewski | 1 year ago
  1. 0

    Android Studio 1.4 beta 2 RenderScript support library v8 not working with | Tech Jaffa

    techjaffa.info | 11 months ago
    com.android.dex.DexException: Multiple dex files define Landroid/support/annotation/AnimRes;
  2. 0

    Impacted Cases ============== Can't build any applications when dependency is added {code:none}compile 'org.xwalk:xwalk_core_library_beta:16.45.421.1'{code} Stacktrace from gradle: {code:none}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:502) at com.android.dx.command.dexer.Main.runMonoDex(Main.java:334) at com.android.dx.command.dexer.Main.run(Main.java:277) at com.android.dx.command.dexer.Main.main(Main.java:245) at com.android.dx.command.Main.main(Main.java:106){code} Reproduce Test Steps ==================== Add dependency to the project that also contains support libraries Expected Outcome ================ Compile without any problem Actual Outcome ============== Can't compile Issue Analysis ============== Library xwalk_core_library_beta starting from 16.45.421.1 embeds source codes for support libraries. Unfortunately they clashes with original support libraries. Embedding support libraries instead of making them as internal dependencies is undesired solution.

    JIRA | 1 year ago | Łukasz Milewski
    com.android.dex.DexException: Multiple dex files define Landroid/support/annotation/AnimRes;
  3. 0

    Impacted Cases ============== Can't build any applications when dependency is added {code:none}compile 'org.xwalk:xwalk_core_library_beta:16.45.421.1'{code} Stacktrace from gradle: {code:none}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:502) at com.android.dx.command.dexer.Main.runMonoDex(Main.java:334) at com.android.dx.command.dexer.Main.run(Main.java:277) at com.android.dx.command.dexer.Main.main(Main.java:245) at com.android.dx.command.Main.main(Main.java:106){code} Reproduce Test Steps ==================== Add dependency to the project that also contains support libraries Expected Outcome ================ Compile without any problem Actual Outcome ============== Can't compile Issue Analysis ============== Library xwalk_core_library_beta starting from 16.45.421.1 embeds source codes for support libraries. Unfortunately they clashes with original support libraries. Embedding support libraries instead of making them as internal dependencies is undesired solution.

    JIRA | 1 year ago | Łukasz Milewski
    com.android.dex.DexException: Multiple dex files define Landroid/support/annotation/AnimRes;
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    UNEXPECTED TOP-LEVEL EXCEPTION:

    Stack Overflow | 2 years ago | Михаил Бойцов
    com.android.dex.DexException: Multiple dex files define Landroid/support/annotation/AnimRes;
  6. 0

    I mark error when running my project build.gradle android in eclipse it can be?

    Stack Overflow | 2 years ago | martin sanchez
    com.android.dex.DexException: Multiple dex files define Landroid/support/annotation/AnimRes;

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.android.dex.DexException

      Multiple dex files define Landroid/support/annotation/AnimRes;

      at com.android.dx.merge.DexMerger.readSortableTypes()
    2. Android SDK's dx Tool
      Main.main
      1. com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)
      2. com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)
      3. com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)
      4. com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
      5. com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
      6. com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:502)
      7. com.android.dx.command.dexer.Main.runMonoDex(Main.java:334)
      8. com.android.dx.command.dexer.Main.run(Main.java:277)
      9. com.android.dx.command.dexer.Main.main(Main.java:245)
      9 frames