So I decided to learn minecraft modding and was going through the setup and then it starts to give me this error everytime. I have tried all the methods I found on Google to increase JVM memory like creating a file gradle.properties which has 2 GiB of RAM specified there or going into Java properties and whatever I found but none has helped so far. I have a Windows 7 machine with 8 gigs of RAM. That should be enough I guess, and Gradle is installed correctly if it has something to do with it. Any help regarding this error and how to fix?