I have a SAMSUNG S5 and i'm starting to learn how to program in Android. At first Android Studio detected my device and I was able to test my programs fine but all of a sudden it can't find it anymore. Everytime time I go to 'reset adb' in Android Device Monitor it always gives me this error:
Adb connection Error:An existing connection was forcibly closed by the remote host
My computer detects my device but Android Studio does not.
I've tried restarting Android studio and my entire computer.
I've tried different USB ports and USBs.
I've also tried uninstalling and re installing the driver.
Nothing works, please help, thanks.
Also, try changing usb computer connection type (found in notifications bar). For me, connecting as a camera (ptp as opposed to the default mtp) was the solution.