Home » Android » cordova – Ionic Android Build failed : Unable to start the daemon process

cordova – Ionic Android Build failed : Unable to start the daemon process

Posted by: admin June 15, 2020 Leave a comment

Questions:

when i’m running ionic build android --release
i get an error

Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap

Does anyone know the fix ?enter image description here

How to&Answers:

I got the solution by adding a new system variable name : _JAVA_OPTIONS and value : -Xmx512M

Answer:

After changing the setting in the environment you should restart your Command Prompt CMD to update environment variables

Answer:

your solution: I got the solution by adding a new system variable name : _JAVA_OPTIONS and value : -Xmx512M
Hi Amit where should I change this