Enable multiDex in processing

One of my android sketches got a fair bit large, causing build errors related to dex.
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.

@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.