MultiDex eliminates infamous problem with 64k methods and has the ability to make two dex files. It works out-of-the-box for the Android platform so no additional SDKs are needed. No more problems!
- Current version: 1.9.0
- Binaries compiled for: Unreal Engine 4.23
- Required Unreal Engine 4.23 or above.
- Eliminates infamous problem with "64k methods"
- Ability to make two dex files
- Out of the box for Android platform
- No additional SDKs are needed
Plugin was made in collaboration with zompi.pl. You can find more info about resolving MultiDex problem here.
-
Copy this folder to the Plugins folder located in the main path of your project.
-
Enable MultiDex in Edit -> Plugins -> Misc -> MultiDex.
-
Go to [PROJECT_FOLDER]/Build/Android/
a) If you already have created custom_rules.xml file, simply add:
<import file="custom_rules_multidex.xml" optional="true" />
b) If you don't have created custom_rules.xml file yet, copy it from [PLUGIN_FOLDER]/Extras/custom_rules.xml.
-
Add new environment variable _JAVA_OPTIONS = -Xmx2048m -Xms256m -Xss8m
Example for Windows: Control Panel -> System and Security -> System -> Advanced system settings -> Environment Variables -> Uses variables for X -> New...
-
You should enable MultiDex plugin only if you exceeded 64k methods limit. If you have a project that doesn’t need multidexing the build will fail!
Plugin icon designed by Freepik.