錯誤:沒法啓動守護進程:不能爲對象堆預留足夠的空間。

Error:Unable to start the daemon process: could not reserve enough space for object heap.
Please assign more memory to Gradle in the project's gradle.properties file.
For example, the following line, in the gradle.properties file, sets the maximum Java heap size to 1,024 MB:
<em>org.gradle.jvmargs=-Xmx1024m</em>

jvm

解決辦法:gradle

gradle.properties文件中添加org.gradle.jvmargs=-XX\:MaxHeapSize\=256m -Xmx256m   或    org.gradle.jvmargs=-XX\:MaxHeapSize\=512m -Xmx512mui

方法二:歡迎頁------Configure > Settings.-----------Build, Execution, Deployment > Compiler--------Build process heap size (Mbytes)改爲1024spa

相關文章
相關標籤/搜索