Android studio:fail to sync Gradle project '***' 的解決辦法

問題描述:

Unable to start the deamon process :could not reseve enough sapce for object heap .

please assign more memory to gradle in the project's gradle .properties file.

for example the following line , in the gradle.proties,set the maximum Java heap szie to 1,024MB:

 org.gradle.jvmargs=-Xmx1024m     ......


解決辦法:

①找到gradle.properties文件,例如我的在

D:\AndroidWorkSpace\zhihuibj\gradle.properties

②打開,複製 org.gradle.jvmargs=-Xmx1024m 到該文件

③重啓Android Studio.


發佈了33 篇原創文章 · 獲贊 19 · 訪問量 5萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章