Is there a way to set enable multidex (https://github.com/casidiablo/multidex) for Android if I build apps using Ionic Framework ?
To enable Multidex, edit the build. gradle file at the module level: android { compileSdk 31 defaultConfig { ... minSdk 21 targetSdk 31 versionCode 1 versionName "1.0" multiDexEnabled true // Add this to enable Multidex testInstrumentationRunner "androidx.
In Android, the compilers convert your source code into DEX files. This DEX file contains the compiled code used to run the app. But there is a limitation with the DEX file. The DEX file limits the total number of methods that can be referenced within a single DEX file to 64K i.e. 65,536 methods.
They are indicated for all types of wounds, including dermal ulcers (e.g., leg ulcers, pressure ulcers and other secreting lesions), diabetic ulcers, abdominal wounds, infected wounds, superficial wounds, lacerations, cuts, abrasions, donor sites and second degree burns. Multidex Powder is indicated for moist wounds.
There is a plugin that enables multidex. To install it, run:
cordova plugin add --save https://github.com/jwall149/cordova-multidex
And try building again. The build may take a little longer than usual, but your app should compile without troubles.
For those still having this issue, I've fixed it by installing cordova-plugin-multidex
cordova plugin add cordova-plugin-enable-multidex
Check it out: Multidex for Cordova
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With