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.
source to share
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.
source to share
You should check them first:
1- Install Google USB Driver -> open SDK Manager and then download and install it
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
source to share