Getting Gradle Error "Could Not Reserve Enough Space for Object Heap" Constantly in Intellij Idea

Getting Gradle error Could not reserve enough space for object heap constantly in Intellij IDEA

Installing 64 bit Java solved it for me

Cordova error could not reserve enough space for 2097152KB object heap

I finally fixed it. I was changing the RAM values in gradles.properties, but when I changed it from -Xmx2048m to -Xmx1024m in C:\Users\mauro\Projects\App\platforms\android\cordova\lib\config\GradlePropertiesParser, it worked!

Unable to run application with Gradle: Error: Could not find or load main class 1.8

The issue was resolved and I would like to share this knowledge with all those who encounter a similar problem.
In my case, I had to delete two configuration files gradle.experimental.xml and gradle.settings.xml from IDEA configuration directory %IDEA_HOME%\config\options. I suppose they were created at the time when I installed Gradle globally on my PC. Somehow these settings were persisted, even after I removed globally installed Gradle and started to use Gradle's wrapper.



Related Topics



Leave a reply



Submit