Amit Singh
Amit Singh

Reputation: 1800

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

Upvotes: 9

Views: 14557

Answers (3)

Sonali yemul
Sonali yemul

Reputation: 1

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

Upvotes: 0

Mohsin A.
Mohsin A.

Reputation: 98

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

Upvotes: 6

Amit Singh
Amit Singh

Reputation: 1800

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

Upvotes: 65

Related Questions