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.
Make sure you have downloaded the latest version of the googleusb driver from your SDK manager. If that doesnt help try a Samsung universal ADB driver :
http://download.clockworkmod.com/test/UniversalAdbDriverSetup6.msi
And of course dont forget to enable USB debugging on your device
I figured this out - for some reason my phone shuts off USB Debugging for no reason. I still sometimes get this issue after I've turned it on and I look at my phone and its off again. Really weird but that was the problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With