# Execution failed for task ':transformDexWithDexForRelease'

**URL:** <https://forum.ionicframework.com/t/execution-failed-for-task-transformdexwithdexforrelease/131311>\
**Category:** ionic-v3\
**Created:** [May 25, 2018, 12:57am UTC](https://forum.ionicframework.com/t/execution-failed-for-task-transformdexwithdexforrelease/131311 "2018-05-25T00:57:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![athlona64](https://avatars.discourse-cdn.com/v4/letter/a/779978/32.png) [@athlona64](https://forum.ionicframework.com/u/athlona64)\
**Post date:** [May 25, 2018, 12:57am UTC](https://forum.ionicframework.com/t/execution-failed-for-task-transformdexwithdexforrelease/131311/1 "2018-05-25T00:57:41Z")

</div>

:transformDexWithDexForRelease  
FAILED

FAILURE: Build failed with an exception.

- What went wrong:  
Execution failed for task ‘:transformDexWithDexForRelease’.

> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/measurement/zzkt;

- Try:  
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

- Get more help at [https://help.gradle.org](https://help.gradle.org)

BUILD FAILED in 3s  
35 actionable tasks: 1 executed, 34 up-to-date  
(node:14245) UnhandledPromiseRejectionWarning: Error: /home/manzer/ionic/carv2/platforms/android/gradlew: Command failed with exit code 1 Error output:  
FAILURE: Build failed with an exception.

- What went wrong:  
Execution failed for task ‘:transformDexWithDexForRelease’.

> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/measurement/zzkt;

- Try:  
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

- Get more help at [https://help.gradle.org](https://help.gradle.org)

BUILD FAILED in 3s  
at ChildProcess.whenDone (/home/manzer/ionic/carv2/platforms/android/cordova/node\_modules/cordova-common/src/superspawn.js:169:23)  
at ChildProcess.emit (events.js:180:13)  
at maybeClose (internal/child\_process.js:936:16)  
at Process.ChildProcess.\_handle.onexit (internal/child\_process.js:220:5)  
(node:14245) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)  
(node:14245) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

```auto
cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils : 1.19.1
    ionic (Ionic CLI) : 3.19.1

global packages:

    cordova (Cordova CLI) : 8.0.0 

local packages:

    @ionic/app-scripts : 3.1.8
    Cordova Platforms : android 6.4.0
    Ionic Framework : ionic-angular 3.9.2

System:

    Android SDK Tools : 26.1.1
    Node : v9.11.1
    npm : 5.6.0 
    OS : Linux 4.13

Environment Variables:

    ANDROID_HOME : /home/manzer/Android/Sdk

Misc:

    backend : pro

```

---

<div class="post-metadata">

**Author:** ![manish\_agrawal](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@manish\_agrawal](https://forum.ionicframework.com/u/manish_agrawal)\
**Post date:** [May 25, 2018, 7:01am UTC](https://forum.ionicframework.com/t/execution-failed-for-task-transformdexwithdexforrelease/131311/2 "2018-05-25T07:01:16Z")

</div>

I am also facing this problem.

---

<div class="post-metadata">

**Author:** ![nobody22](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@nobody22](https://forum.ionicframework.com/u/nobody22)\
**Post date:** [June 8, 2018, 4:13am UTC](https://forum.ionicframework.com/t/execution-failed-for-task-transformdexwithdexforrelease/131311/3 "2018-06-08T04:13:57Z")

</div>

anyone have the solution of this…i am also facing this problem

---

<div class="post-metadata">

**Author:** ![nobody22](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@nobody22](https://forum.ionicframework.com/u/nobody22)\
**Post date:** [June 8, 2018, 6:07am UTC](https://forum.ionicframework.com/t/execution-failed-for-task-transformdexwithdexforrelease/131311/4 "2018-06-08T06:07:38Z")

</div>

have you found the solution of this problem

---

<div class="post-metadata">

**Author:** ![starlust](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@starlust](https://forum.ionicframework.com/u/starlust)\
**Post date:** [September 30, 2018, 6:15pm UTC](https://forum.ionicframework.com/t/execution-failed-for-task-transformdexwithdexforrelease/131311/5 "2018-09-30T18:15:39Z")

</div>

You can by-pass the error by adding this plugin to your project :

```auto
cordova plugin add --save https://github.com/jwall149/cordova-multidex

```

---

<div class="post-metadata">

**Author:** ![thinkingmindpro](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/thinkingmindpro/32/121832_2.png) [@thinkingmindpro](https://forum.ionicframework.com/u/thinkingmindpro)\
**Post date:** [October 5, 2018, 6:44pm UTC](https://forum.ionicframework.com/t/execution-failed-for-task-transformdexwithdexforrelease/131311/6 "2018-10-05T18:44:18Z")

</div>

yes this worked !

Sam

---

<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:34pm UTC](https://forum.ionicframework.com/t/execution-failed-for-task-transformdexwithdexforrelease/131311/7 "2021-07-19T21:34:47Z")

</div>

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


