Android build memory size setting
Last updated
Was this helpful?
Last updated
Was this helpful?
This plugin sets the maximum memory usage for Gradle when building Android apps.
Cordova 10 or higher
From Monaca Cloud IDE menu, go to Configure → Cordova Plugin Settings
.
Under Available Plugins section, hover over the the MaxMemForAndroidBuild
plugin and click Enable
button.
Open the project and open config.xml
.
If you want to set the memory size used in the Android build process to 4096Mb, you can do so as follows
Then you also need to change the maximum memory size used by Gradle Daemon, for example, if you want to set it to 4G, set it as follows