15

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.

ngoson
  • 583
  • 5
  • 14

4 Answers4

19

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

ngoson
  • 583
  • 5
  • 14
0

In my case, I was using VPN connection and problem solved after disconnecting VPN and restart Android studio IDE!!!

Sayed Abolfazl Fatemi
  • 3,678
  • 3
  • 36
  • 48
0

I did not realize that VPN can create such trouble until I fixed it by uninstalling VPN software. I have been trying to uninstall Android Studio and Java more than 3 times but got no luck until I read that VPN also can rise this issue.

m4n0
  • 29,823
  • 27
  • 76
  • 89
0

I was using adb Wi-Fi plugin to run app through Wi-Fi network, for that I am using hotspot in windows 10 that causing opening many instance of java.exe (OpenJDK Platform binary).

Only Solution worked for me was turning off the Hotspot.

Somesh
  • 11
  • 1