2

I am new to mac and trying to use various Android devices for development. Everything was working fine till today when Android devices simply wont show up in DDMS view in eclipse. I have tried to use Terminal to look up connected Android devices using:

~adb devices

Device list comes up empty. Emulator shows up fine in the DDMS view as well as in the device list from command line.

I have tried the following:

  1. Disconnected the device from the computer.

  2. Restart the computer.

  3. Restart the device.

  4. Connected the device.

  5. adb kill-server, adb start-server

Nothing seems to work. Any advice will be much appreciated.

newfurniturey
  • 37,556
  • 9
  • 94
  • 102
user1935235
  • 81
  • 3
  • 10
  • Did you enable the USB debug option on the device? – David Dec 28 '12 at 19:25
  • Please explain the difference between "device list comes up empty" vs "device list from command line". Also, be aware that DDMS only accesses devices through ADB. Also your "~adb" command is faulty syntax. – Chris Stratton Dec 28 '12 at 19:26
  • adb devices, returns a list of connected Android devices and Emulators, when I type this command in Terminal, it doesn't return any devices. Even though the device is connected. – user1935235 Dec 28 '12 at 19:29

3 Answers3

6

Firstly ensure that your device is connected in "Charge Only" mode, so that the sd-card is not mounted on your local system while testing.

Next, if you're on Ubunutu, as mentioned on the Android Dev website here, you need to set up the device for development to see it in the list.

If you're developing on Ubuntu Linux, you need to add a udev rules file that contains a USB configuration for each type of device you want to use for development. In the rules file, each device manufacturer is identified by a unique vendor ID, as specified by the ATTR{idVendor} property.

EDIT: So you're on a mac, then a little lookup throws this SO question up. According to the post, this was the work-around:

ADB on Mac OS X stops recognizing the attached device after installing EasyTether driver. Use kextload/kextunload to unload from memory the EasyTetherUSBEthernet.kext kernel extension manually. It is in /System/Library/Extensions/

Community
  • 1
  • 1
varevarao
  • 2,186
  • 13
  • 26
0

Start USB debugging(in settings>applications>developer options) on device first.

And still there is problem, try following link. http://developer.android.com/tools/device.html

It helped me to detect my Micromax Canvas Hd

Shirish Herwade
  • 11,461
  • 20
  • 72
  • 111
  • 1
    Can you please share the UDEV file? Actually Micromax is not listed in googles OEM list! – Skynet Aug 19 '13 at 11:28
  • 1
    Yes its not listed. But I tied Motorola's "22b8" value and it worked for Micromax. Also on friends PC the idea worked. We done it for Ubuntu 32 and 64 bit – Shirish Herwade Aug 20 '13 at 06:16
  • I think Micromax is quite a big company, specially here in Indian and Asian market. And a lot of my friends had the same problem. So Google should add it in the list. – Shirish Herwade Sep 02 '13 at 09:06
  • 1
    Not unless thier OEM shows up the likes of Google and HTC and Motorola in your case :D – Skynet Sep 02 '13 at 09:12
0

Run any project in Emulator.While running the Project you can see the device in DDMS.