這幾天自己的筆記本一直報這個錯衷模,有時重啟一下就好了,當然也有時候搞不定的時候坠七,就在昨天搞了好久終于找到答案了眨补。
錯誤.png
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 2097152KB object heap
Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
Paste_Image.png
把org.gradle.jvmargs=-Xmx1536m的1536 改為512
org.gradle.jvmargs=-Xmx512m
rebuild一下就好了,什么原理呢?也就是JVM內(nèi)存占用的太大了切心,調(diào)小一下就行了飒筑。