天天看點

Unable to start the daemon process.解決辦法

比較老的機器,記憶體隻有3.5G,安裝AS後,建立項目出現

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

主要是這個原因:最大配置設定的記憶體由-Xmx指定,堆記憶體。修改方法

1.打開AS,選擇project,gradle.properties

Unable to start the daemon process.解決辦法

2. 修改jvmargs值如下:

  1. org.gradle.jvmargs=-Xmx1024m

    3. 重新開機AS

繼續閱讀