# Execution failed for task app

**URL:** <https://discourse.processing.org/t/execution-failed-for-task-app/24563>\
**Category:** Processing for Android\
**Created:** [October 13, 2020, 9:22am UTC](https://discourse.processing.org/t/execution-failed-for-task-app/24563 "2020-10-13T09:22:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheEternalDragon](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@TheEternalDragon](https://discourse.processing.org/u/TheEternalDragon)\
**Post date:** [October 13, 2020, 9:22am UTC](https://discourse.processing.org/t/execution-failed-for-task-app/24563/1 "2020-10-13T09:22:16Z")

</div>

Full error below as the title wouldn’t accept it

I have been stuck on a problem for hours now, and after many hours of debugging I have given up and need help. The error reads:

> FAILURE: Build failed with an exception.
> 
> - What went wrong:  
> Execution failed for task ‘:app:transformClassesWithDexBuilderForDebug’.  
> com.android.build.api.transform.TransformException: com.android.builder.dexing.DexArchiveBuilderException: com.android.builder.dexing.DexArchiveBuilderException: Failed to process C:\Users\(myUserName)\AppData\Local\Temp\android5429541723127013969sketch\app\build\intermediates\transforms\desugar\debug\1.jar

So after a whole night of debugging this is what I found and what I’ve tried:  
What was recommended most was using

> ./gradelw clean

However this meant a whole bunch of new problems with the command still not working and getting stuck on

> Failed to notify project evaluation listener error

Which I have not found a solution for.

Deleting the Android folder did not seem to resolve the issue, with it persisting and not making a new android folder

Reinstalling the Android Library which did also not resolve the problem

CrossPosted on [java - Execution failed for task app:transformClassesWithDexBuilderForDebug in Processing - Stack Overflow](https://stackoverflow.com/questions/64325425/execution-failed-for-task-apptransformclasseswithdexbuilderfordebug-in-processi)

---

<div class="post-metadata">

**Author:** ![TheEternalDragon](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@TheEternalDragon](https://discourse.processing.org/u/TheEternalDragon)\
**Post date:** [November 2, 2020, 7:09pm UTC](https://discourse.processing.org/t/execution-failed-for-task-app/24563/2 "2020-11-02T19:09:06Z")

</div>

Issue solved on stackoverflow,  
the Processing video library is not compatible with Android mode

---

<div class="post-metadata">

**Author:** ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)\
**Post date:** [November 2, 2020, 7:55pm UTC](https://discourse.processing.org/t/execution-failed-for-task-app/24563/3 "2020-11-02T19:55:13Z")

</div>

Hi  
I’m still not convinced,  
@Electronix in [this link](https://discourse.processing.org/t/sound-library-no-longer-works/25110) is having problems as well.  
It may be a wrong structure setup of the library.  
I am trying to restructure it following the rules below given on t[his page](https://github.com/processing/processing-sound), and also adding the dex jar needed. If you only need to play a file you can do it in native code in the first link. The cassette library works also well.

### How to build

1. `git clone git@github.com:processing/processing-sound.git`
2. (optional: copy (or soft-link) `processing-core.zip` from your local [Processing for Android mode](https://github.com/processing/processing-android/releases/tag/latest) as well as your Android SDK’s `android.jar` , API level 26 or higher, into the `library/` folder. If you don’t do this, these will be downloaded from GitHub instead. Note that as of version 2.2 the sound library is compiled against Processing’s Android mode rather than the normal Processing `core.jar` in order to more smoothly support `AudioIn` on Android. Other dependencies, in particular Phil Burk’s [JSyn](http://www.softsynth.com/jsyn/) engine on which this library is based, are also all downloaded automatically by ant.)
3. `ant dist` (or, alternatively, run `build.xml` from within Eclipse)

The resulting `sound.zip` can be extracted into your Processing installation’s `libraries/` folder.
