Android Studio cannot detect Samsung S5

I have a SAMSUNG S5 and I am starting to learn to program on Android. First, Android studio found my device and I was able to test my programs, but suddenly it can't find it anymore. Every 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 doesn't.

I have tried restarting android studio and my whole computer.

I have tried different USB ports and USB devices.

I have also tried uninstalling and reinstalling the driver.

Nothing works, please help, thanks.

+3


source to share


4 answers


I figured it out - for some reason my phone is disabling USB debugging for no reason. I still sometimes get this question after I have turned it on and I look at my phone and back again. Oddly enough, that was the problem.



+2


source


Also, try changing your computer connection type usb (found in the notification bar). For me, the ideal solution was to connect as a camera (ptp as opposed to mtp by default).



+7


source


Make sure you download the latest googleusb driver from your SDK manager. If it doesn't help try the generic Samsung ADB driver:

http://download.clockworkmod.com/test/UniversalAdbDriverSetup6.msi

And of course, don't forget to enable USB debugging on your device.

+6


source


You should check them first:

1- Install Google USB Driver -> open SDK Manager and then download and install it

enter image description here

2- Enable USB debugging mode in phone -> in settings -> Developer options

I ended up downloading the USB driver from Samsung: http://www.samsung.com/us/support/downloads

You need to select your device and then download and install the software. Then restart adb:

adb kill-server
adb start-server

      

You can see your device is added to devices in adb by running this command:

adb devices

      

enter image description here

+2


source







All Articles