Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio start many instance of java.exe until run out of ram

Recently I encountered this error of Android Studio 4.1 . It start many instance of java.exe (OpenJDK Platform binary) until run out of RAM (I have 10gb of RAM).

enter image description here

I cannot sync, build projects. I have uninstall it and reinstall Android Studio 4.1 but the same thing happened. This is the error message I receive from AS after 10 minutes it build (normally only takes about 2 mins) : The first result from the daemon was empty. Most likely the process died immediately after connection.

Does anyone have this error and how to fix it? Thanks.

like image 834
ngoson Avatar asked Nov 03 '20 03:11

ngoson


1 Answers

I have found the problem. I use Mobile Hotspot on Windows 10, switched it off and the Gradle deamon will run normal again.

like image 128
ngoson Avatar answered Nov 13 '22 22:11

ngoson