Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android 'Debug enabled device' is not showing up on Eclipse

Tags:

android

I have gone through a lot of threads before posting this here. I am facing an issue with Android device debugging - the device isn't getting listed on Devices tab in Eclipse IDE. (To get 'Devices' tab 'Windows -> Show view -> Devices'). So while starting to debug there is no way to choose a device as device listing shows blank. The strange thing is that it used to work fine before and under windows explorer I can browse the files.

I am using Windows Vista Home premium, 32-bit OS

What all I have tried:

In phone:

  • USB debugging is enabled in phone under 'Settings-> Developer options'
  • Disabled and enabled USB debugging
  • Restarted the phone

In Eclipse:

  • Under 'Debug configurations->Target(tab)', 'Always prompt to pick device' is selected. It prompts but doesn't show any device on the device list!
  • Tried resting ADB under Devices tab. (To get 'Devices' tab 'Windows -> Show view -> Devices'
  • Reinstalled latest Android SDK along with ADB
  • Installed Eclipse Juno

In windows CMD under /platform-tools/ directory where the Android SDK Tools is installed, ran the following commands without getting any positive outcome: Shut down Eclipse, unplugged the device and tried running: adb kill-server adb start-server

Plugged it back in and ran adb devices

Mobile device details:

  • Model = Galaxy S2 GT-i9100
  • Rooted = yes
  • OS Ver. = 4.0.3
  • Kernel ver. = 3.0.15
  • hardcore@speedmod-s2-ics #k3-27b

    Eclipse version: Indigo Service Release 1 Build id: 20110916-0149

Edit1: I am ending up getting this error message on Eclipse console: "[2012-10-09 12:39:22 - DeviceMonitor] Adb connection Error:An existing connection was forcibly closed by the remote host [2012-10-09 12:39:23 - DeviceMonitor] Connection attempts: 1" I believe the problem is with the ADB driver. I have installed the latest SDK so the driver is also latest. Is there any other way to install the ADB driver?

like image 265
ambar Avatar asked Oct 09 '12 15:10

ambar


People also ask

How do I force my Android to debug?

On the device, go to Settings > About <device>. Tap the Build number seven times to make Settings > Developer options available. Then enable the USB Debugging option. Tip: You might also want to enable the Stay awake option, to prevent your Android device from sleeping while plugged into the USB port.

Can I use my physical Android device to debug my app without activate the Developer mode?

A device must enable Developer mode in order to deploy and test an Android app. Developer mode is enabled by following these steps: Go to the Settings screen. Select About phone.


1 Answers

Is your phone set to charge only? I know my phone will not connect in Eclipse if it is set to storage mode. If you can view it in the Windows Explorer, that may be the cause of your problem.

Other than that, sometimes when I run into this sort of problem I do the following:

1. Unplug phone from PC
2. Disable USB Debugging in phone
3. Plug phone into PC
4. Unplug phone from PC
5. Enable USB Debugging in phone
6. Plug phone into PC

If my phone is being difficult and not showing up in Eclipse, or if it is showing up but not allowing me to select it for debugging, doing this once or twice usually fixes it.

like image 98
Dave Avatar answered Oct 31 '22 21:10

Dave