Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ionic Android Build failed : Unable to start the daemon process

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

like image 931
Amit Singh Avatar asked Nov 02 '16 16:11

Amit Singh


2 Answers

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

like image 187
Amit Singh Avatar answered Nov 12 '22 09:11

Amit Singh


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

like image 6
Mohsin A. Avatar answered Nov 12 '22 09:11

Mohsin A.