Main.main() has thrown a DexException

com.android.dex.DexException
Javadoc
Thrown when there's a format problem reading, writing, or generally processing a dex file.
at com.android.dx.merge.DexMerger.readSortableTypes
(source)
at com.android.dx.merge.DexMerger.getSortedTypes
(source)
at com.android.dx.merge.DexMerger.mergeClassDefs
(source)
at com.android.dx.merge.DexMerger.mergeDexes
at com.android.dx.merge.DexMerger.merge
(source)
at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers
(source)
at com.android.dx.command.dexer.Main.runMonoDex
at com.android.dx.command.dexer.Main.run
(source)
at com.android.dx.command.dexer.Main.main
(source)
8 frames hidden

Typical Exception Messages

  1. Multiple dex files define Landroid/support/annotation/AnimRes;
  2. Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl;
  3. Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompatIcs;
  4. Multiple dex files define Landroid/support/v7/appcompat/R$anim;
  5. Multiple dex files define Lbolts/AggregateException;
  6. Multiple dex files define Lcom/nineoldandroids/animation/Animator$AnimatorListener;
  7. Multiple dex files define Lcom/google/android/gms/iid/MessengerCompat$1;
  8. Multiple dex files define Lcom/google/android/gms/actions/ReserveIntents;
  9. Multiple dex files define Lcom/google/ads/AdRequest$ErrorCode;
  10. Multiple dex files define Lcom/parse/AbstractQueryController$1;

Origin

Main.run() has thrown a DexException

com.android.dex.DexException
7 frames hidden
com.android.dx.command.dexer.Main.run
704Web pages

Similar

Specific cases

Solution

chinthana, 9 months ago

Occurs when a Module has a dependency on both another module and that same module's jar.
If that dependency came from 3rd party libraries, you can declare it, update library in your build.gradle, or remove old version from library by exclude statement.

Check the source of this solution for more info

External results for this pattern (682)

  1. policzvia GitHub4 weeks ago
    Multiple dex files define Lcom/google/android/gms/internal/zzfkt;
    Show stack trace
  2. viperfxvia GitHub1 month ago
    Multiple dex files define Landroid/support/v4/app/NavUtilsJB;
    Show stack trace
  3. BobAleenavia GitHub1 month ago
    Multiple dex files define Lcom/google/firebase/iid/zzb;
    Show stack trace
  4. misakuovia GitHub1 month ago
    Multiple dex files define Lcom/alibaba/android/arouter/facade/annotation/Autowired;
    Show stack trace
  5. tigerohuangvia GitHub1 month ago
    Multiple dex files define Lcom/google/android/gms/measurement/AppMeasurementContentProvider;
    Show stack trace
  6. goodhyunvia GitHub1 month ago
    Multiple dex files define Lcom/google/android/gms/internal/zzmy;
    Show stack trace
  7. jsfrvia GitHub1 month ago
    Multiple dex files define Lcom/google/firebase/iid/zzb$1;
    Show stack trace
  8. FME-nstokoevia GitHub1 month ago
    Multiple dex files define Lcom/google/android/gms/location/places/PlaceReport;
    Show stack trace
  9. leobetosouzavia GitHub2 months ago
    Multiple dex files define Lcom/google/android/gms/internal/zzfgn;
    Show stack trace