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
答案 0 :(得分:0)
我建议通过转到File
- > Invalidate Caches/Restart
答案 1 :(得分:0)
就像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
此致