[英]Failed to sync Gradle project in Android Studio 1.4
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:
請告訴我如何解決這個問題?
幾乎可以按照它說的去做-在項目目錄中,編輯gradle.properties
。 應該有類似-
org.gradle.jvmargs=-Xmx1024m -XX:MaxPermSize=256m
將這些數字更改為更大的數字以增加gradle的內存限制。 例如,以下似乎很好用-
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.