本文主要是介绍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>
提示内存空间不足.可是我8g的内存就开了个qq和android studio 怎么会内存不足呢.记得没换系统之前程序还是能用.换过系统之后.android studio没有重新安装.就不能用了.奇怪的问题,后来在stackoverflow.com 上找到了这个问题的解决办法:
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.
帖子地址: http://stackoverflow.com/questions/25009717/android-studio-gradle-project-unable-to-start-the-daemon-process-initializatio
修改完毕.依然报此错误的话.最好重启一下电脑
这篇关于Android Studio报错:Unable to start the daemon process: could not reserve enough space for object heap的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!