Android Studio Gradle project sync failed
1 2 3 4 5 6 7 8 |
<span class="typ">Error</span><span class="pun">:</span><span class="typ">Unable</span><span class="pln"> to start the daemon process</span><span class="pun">.</span> <span class="typ">This</span><span class="pln"> problem might be caused by incorrect configuration of the daemon</span><span class="pun">.</span> <span class="typ">For</span><span class="pln"> example</span><span class="pun">,</span><span class="pln"> an unrecognized jvm option is used</span><span class="pun">.</span> <span class="typ">Please</span><span class="pln"> refer to the user guide chapter on the daemon at http</span><span class="pun">:</span><span class="com">//gradle.org/docs/1.10/userguide/gradle_daemon.html </span> <span class="typ">Please</span><span class="pln"> read below process output to find out more</span><span class="pun">:</span> <span class="pun">-----------------------</span> <span class="typ">Error</span><span class="pln"> occurred during initialization of VM </span><span class="typ">Could</span><span class="pln"> not reserve enough space </span><span class="kwd">for</span><span class="pln"> object heap </span><span class="typ">Error</span><span class="pun">:</span> <span class="typ">Could</span><span class="pln"> not create the </span><span class="typ">Java</span> <span class="typ">Virtual</span> <span class="typ">Machine</span><span class="pun">.</span> <span class="typ">Error</span><span class="pun">:</span><span class="pln"> A fatal exception has occurred</span><span class="pun">.</span> <span class="typ">Program</span><span class="pln"> will exit</span><span class="pun">.</span> |
Just a blind guess: try to add something like this to your gradle.properties file in the project:
1 |
org.gradle.jvmargs=-Xmx512m -XX:MaxPermSize=512m |