# Build fail on android : DexMergerForDebug

**URL:** <https://forum.ionicframework.com/t/build-fail-on-android-dexmergerfordebug/147332>\
**Category:** ionic-v3\
**Created:** [November 12, 2018, 3:13pm UTC](https://forum.ionicframework.com/t/build-fail-on-android-dexmergerfordebug/147332 "2018-11-12T15:13:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![EnzoDLP](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/enzodlp/32/116227_2.png) [@EnzoDLP](https://forum.ionicframework.com/u/EnzoDLP)\
**Post date:** [November 12, 2018, 3:13pm UTC](https://forum.ionicframework.com/t/build-fail-on-android-dexmergerfordebug/147332/1 "2018-11-12T15:13:55Z")

</div>

Hello,

I have a big problem that appeared suddenly … Before that day I could compile my application on my mobile (android) without any problem however, now I have this error that appears and that blocks me completely …

FAILURE: Build failed with an exception.  
What went wrong:  
Execution failed for task ‘:app:transformDexArchiveWithDexMergerForDebug’.  
com.android.build.api.transform.TransformException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/measurement/zzeh;

For information, the application works correctly on the “ionic serve”.

Thank you for helping me…

---

<div class="post-metadata">

**Author:** ![EnzoDLP](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/enzodlp/32/116227_2.png) [@EnzoDLP](https://forum.ionicframework.com/u/EnzoDLP)\
**Post date:** [November 12, 2018, 3:48pm UTC](https://forum.ionicframework.com/t/build-fail-on-android-dexmergerfordebug/147332/2 "2018-11-12T15:48:14Z")

</div>

To clarify, before all that, from the beginning, when I made ionic cordova add android platform I must obligatorily do these steps below:

- put in android / project.propertie: ‘+’ has all versions
- put in android / app / build.gradle: multiDexEnabled true
- make cordova clean android

otherwise I have the following error that appears: Execution failed for task ‘: app: transformClassesWithDesugarForDebug’.

However after these steps it will work properly until today …

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:09pm UTC](https://forum.ionicframework.com/t/build-fail-on-android-dexmergerfordebug/147332/3 "2021-07-19T21:09:42Z")

</div>

Closed on July 19, 2021, 9:09pm UTC


