Could not reserve enough space for 2097152KB object heap - Cordova build |
|
Hi,
Sometime times, when building android project using cordova, I am experiencing below issue. Is there any way to get rid of this.
"Could not reserve enough space for 2097152KB object heap"
Thanks.
|
RajKumar |
Answered# (13)
|
Reply For This Question
|
|
|
Answer(s) Posted
|
|
Could not reserve enough space for 2097152KB object heap - Cordova build
|
|
To reserve enough space during cordova build process, below "Option" needs to be added in the "System Variable".
Go to Control Panel --> System --> Click on "Advanced System Settings" or "Change Settings" --> Click on "Environment Variables" --> "System Variables" --> Click "New"
Variable Name: _JAVA_OPTIONS
Variable Value: -Xmx512M
You may need to restart to take this into effect.
|
Raj Kumar
| Answered# (13)
|
|
|
Post Your Answer
|
Please login to post your answer.
|
|
|