Ionic Appflow build Error - Execution failed

When i try to make an android build in Ionic Appflow, i get this error:

Execution failed for task ‘:app:transformDexArchiveWithExternalLibsDexMergerForDebug’.
com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
The number of method references in a .dex file cannot exceed 64K.

I can successfully make a build on my local machine but when i try to run the same build on Ionic Appflow, it fails.
Any ideas on how i can fix this issue?

Finally got a solution. Simply run this command to install the plugin.

Command: cordova plugin add cordova-plugin-enable-multidex