Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio can't detect Samsung S5

Tags:

android

ddms

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.

like image 649
MatTaNg Avatar asked Dec 21 '14 19:12

MatTaNg


3 Answers

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.

like image 139
Jack BeNimble Avatar answered Nov 12 '22 07:11

Jack BeNimble


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

like image 39
A Honey Bustard Avatar answered Nov 12 '22 09:11

A Honey Bustard


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.

like image 3
MatTaNg Avatar answered Nov 12 '22 08:11

MatTaNg