본문 바로가기
Programing/Debugging

Getting Gradle error “Could not reserve enough space for object heap”

by CtrlCV맨 2016. 9. 15.
728x90

https://services.gradle.org/distributions/


  1. Right click on start-button and open "System"
  2. Go to Advanced system settings on the left side
  3. Click the button "Environment Variables ..."
  4. In System Variables, click "New..."
  5. New Variable Name: _JAVA_OPTIONS
  6. New Variable Value: -Xmx1024M
  7. Click OK
  8. Restart Window Command or Program


Gradle will detect this option as below.

_JAVA_OPTIONS=-Xmx1024M


728x90