繁体   English   中英

Android Studio显示错误

[英]android studio showing error

Error:Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at  
https://docs.gradle.org/2.10/userguide/gradle_daemon.html
Please read the following process output to find out more:
Error occurred during initialization of VM
Could not reserve enough space for 1572864KB object heap

我建议通过转到File ->使Invalidate Caches/Restart来使Android Studio缓存Invalidate Caches/Restart

就像Omar所说的那样,通常的过程是清除Android Studio上缓存的所有痕迹。

可以使用: File->Invalidate Caches/Restart来完成:

此外,您可以增加gradle的JVM内存。 当我在我的主开发机器(具有大约16gb的RAM)上第一次进行此操作时,我注意到性能上的巨大飞跃。只需取消gradle.properties文件的注释,并根据自己的喜好更改值即可。

\# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

问候

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM