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

2016. 9. 15. 11:15Programing/Debugging

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