Could not reserve enough space for object heap

后端 未结 26 1311
余生分开走
余生分开走 2020-11-22 05:59

I am getting the following exception repeatedly each time I try to run the program.

Error occurred during initialization of VM

Could not reserve e

26条回答
  •  既然无缘
    2020-11-22 06:47

    Open gradle.properties file in android folder.

    Replace this line:

    org.gradle.jvmargs=-Xmx1536M
    

    with:

    org.gradle.jvmargs=-Xmx512m
    

    Explanation: Max limit from Gradle document:

    If the requested build environment does not specify a maximum heap size, the Daemon will use up to 512MB of heap.

提交回复
热议问题