NicoRacing
Lost but trying
Profile
Posts: 78
Reg: Oct 25, 2013
Hyeres
3,680
09/15/15 09:08 AM (8 years ago)

SOLVED - Android Studio - Daemon Process : not enough space for project heap

SOMEHOW I HAD A WINDOWS UPDATE, RESTARTED THE COMPUTER, AND NOW IT WORKS. OH WELL. Hi, First time using Studio and I have this error when importing my project as explained in the instructions.pdf --------- Error:Unable to start the daemon process: could not reserve enough space for object heap. Please assign more memory to Gradle in the project's gradle.properties file. For example, the following line, in the gradle.properties file, sets the maximum Java heap size to 1,024 MB: <em>org.gradle.jvmargs=-Xmx1024m</em> --------- So i open the gradle.properties file and it says : ------------ # Project-wide Gradle settings. # IDE (e.g. Android Studio) users: # Gradle settings configured through the IDE *will override* # any settings specified in this file. # For more details on how to configure your build environment visit # <a href="http://www.gradle.org/docs/current/userguide/build_environment.html" target="_blank" rel="nofollow">http://www.gradle.org/docs/current/userguide/build_environment.html</a> # Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. # Default value: -Xmx10248m -XX:MaxPermSize=256m # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 # When configured, Gradle will run in incubating parallel mode. # This option should only be used with decoupled projects. More details, visit # <a href="http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects" target="_blank" rel="nofollow">http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects</a> # org.gradle.parallel=true ---------- I then changed -xmx memory value (and even all other values) to higher or superhigh numbers but it didn't change a thing. Any idea please ?
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.