. Advertisement .
..3..
. Advertisement .
..4..
I get the “expiring daemon because jvm heap space is exhausted” issue when trying to updated the Android Studio to 3.5 Beta 1. Here is the detail of the error I got the error message:
Expiring Daemon because JVM heap space is exhausted
Please give me some advice to solve this problem.
The cause:
You have got ”expiring daemon because jvm heap space is exhausted” because there is a tremendous strain placed on the Android build system when you add more modules, so the JVM memory allotted is not enough to complete your project.
Solution:
To solve this problem, you need to extend the configuration max heap size for your project. You can do this by 2 ways: through IDE or GUI.
The first, by way of IDE:
This error can be solved by adding two following lines into gradle.properties file. Moreover, you can rely on the availability of RAM to configure the memories which their size is smaller than 1.
Another way is through GUI:
Looking for “Memory Settings” in the Settings menu, then extend the IDE and Daemon maximum heap sizes in accordance with the amount of available system RAM.
This was solved by me configuring the following for my Native project:
And