androidddms

Android Studio can't detect Samsung S5


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.


Solution

  • 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.