本文主要是介绍Android Studio报错:Unable to start the daemon process: could not reserve enough space for object heap,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
最近在使用Android Studio的时候,爆出了这么一个问题:
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>
<a href="http://www.gradle.org/docs/current/userguide/build_environment.html">Read Gradle's configuration guide</a><br><a href="http://docs.oracle.com/javase/7/docs/technotes/guides/vm/gc-ergonomics.html">Read about Java's heap size</a>
Do Following steps:
- Start Android Studio.
- Close any open project.Go to File > Close Project.(Welcome window will open)
- Go to Configure > Settings.
- On Settings dialog,select Compiler (Gradle-based Android Projects) from left and set VM Options to -Xmx512m(i.e. write -Xmx512m under VM Options:) and press OK.
这篇关于Android Studio报错:Unable to start the daemon process: could not reserve enough space for object heap的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!