关于使用AdroidStudio 出现的Error:Unable to start the daemon process. 问题的解决。

在将AdroidStudio升级到版本2.2.2后出现:
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.14.1/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
问题。

在网上查了查。

解决的办法是:
在你的project中的gradle下gradle.properties文件中 关于使用AdroidStudio 出现的Error:Unable to start the daemon process. 问题的解决。 - capt_jacks - capt_jacks的博客
 将 org.gradle.jvmargs = -Xmx512m等号右边的值改为-Xmx512m
  关于使用AdroidStudio 出现的Error:Unable to start the daemon process. 问题的解决。 - capt_jacks - capt_jacks的博客
 然后重新build就好了。具体出现这个问题的原因是gradle的问题。

猜你喜欢

转载自blog.csdn.net/yulongxx/article/details/80164405