Expiring Daemon because JVM heap space is exhausted

前端 未结 3 1004
轮回少年
轮回少年 2020-12-23 15:39

I just updated the Android Studio to 3.5 Beta 1 and I\'m getting

Expiring Daemon because JVM heap space is exhausted

message wh

3条回答
  •  无人及你
    2020-12-23 16:27

    This can be fixed by increasing the configured max heap size for the project.

    Through IDE:

    Add the below lines into the gradle.properties file. Below memory size can be configured based on the RAM availability

    org.gradle.daemon=true
    org.gradle.jvmargs=-Xmx2560m
    

    Through GUI:

    In the Settings, search for 'Memory Settings' and increase the IDE max heap size and Daemon max heap size as per the system RAM availability.

提交回复
热议问题