I'm using a real device to build code with IntelliJ. I realized that when I run app, the WiFi signal is too weak, almost lost the connection. My device is Xiaomi Redmi note 5. The WiFi only loses the connection when I run the app or debug the app. If anyone has same problem, please tell me, lost internet connection and I can't run the app and test it.