# Enable multiDex in processing

**URL:** <https://discourse.processing.org/t/enable-multidex-in-processing/14834>\
**Category:** Processing for Android\
**Created:** [October 20, 2019, 7:09pm UTC](https://discourse.processing.org/t/enable-multidex-in-processing/14834 "2019-10-20T19:09:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![F53](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/f53/32/7118_2.png) [@F53](https://discourse.processing.org/u/F53)\
**Post date:** [October 20, 2019, 7:09pm UTC](https://discourse.processing.org/t/enable-multidex-in-processing/14834/1 "2019-10-20T19:09:24Z")

</div>

One of my android sketches got a fair bit large, causing build errors related to dex.  
in  
After trial and error, I figured out that normally in android studio, you would simply add `multiDexEnabled true` to gradle default config.

I would like to continue working in processing, so cant use this solution.

How would I do something equivalent to adding `multiDexEnabled true` to the default config in processing.

---

<div class="post-metadata">

**Author:** ![akenaton](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@akenaton](https://discourse.processing.org/u/akenaton)\
**Post date:** [October 21, 2019, 5:32pm UTC](https://discourse.processing.org/t/enable-multidex-in-processing/14834/2 "2019-10-21T17:32:59Z")

</div>

@F53 === i think that you cannot do that with P5 as the gradle file is generated on runtime from a template when compiling; the solution is to import your project in Android studio and set multiDexEnabled to true in gradle.
