Failed to sync Gradle project

后端 未结 4 572
温柔的废话
温柔的废话 2020-12-24 03:20

I am using Android studio 1.3.1 and getting this failed to sync Gradle project error :

Error:Unable to start the daemon process: could not reserve enough spa         


        
4条回答
  •  天命终不由人
    2020-12-24 03:44

    try this way Open gradle.properties file.

    add this line at the end:

    org.gradle.jvmargs=-XX\:MaxHeapSize\=256m -Xmx256m
    

    or

    org.gradle.jvmargs=-XX\:MaxHeapSize\=512m -Xmx512m
    

提交回复
热议问题