Android Studio: java.io.IOException: An existing connection was forcibly closed by the remote host

Now working for all the devices. Just I uninstalled the driver of mobile in PC and changed the port to connect with that device. I think some problem with the port in my PC. After long research it fixed by a small thing. It might be helpful to someone.


I also faced same problem,this was a just port problem,I was using computer front USB port ,just use computer back USB port and problem solved.


Restarting adb.exe worked for me. (For windows, Just Go to taskManager and kills the adb.exe process and re-deploy)