Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse, adb, and ddms not detecting Android Emulator

I wanted to try my hand at programming android devices, so I followed the directions from the android website, installed the sdk, the java sdk, and eclipse. My computer is Windows 7 64-Bit, but I have the 32-bit Java SDK and Eclipse installed since hearing that there are issues with the 64-bit versions.

I am running the most recent version of the Android sdk, 4.0 R15.

I believe followed all of the instructions for installation, but when I load up a sample (Lunar Lander in this case), it loads the emulator, but will not install the app to it. ADB does not show the emulator listed when I use "adb devices", the DDMS perspective in eclipse does not detect any device either. In the emulator I have activated the USB debug setting in the developer area.

I have tried restarting the adb server, and have reinstalled a few times.

I even copied what one guy did on a youtube tutorial for a hello world program, and it still would not load to the device.

Does anybody have any idea how to get the emulator and eclipse talking so I can actually run and debug programs?

like image 343
Xantham Avatar asked Dec 12 '11 03:12

Xantham


3 Answers

Try to adb kill-server and then do adb command like adb devices which will start adb again.

It helps in my case.

like image 102
Andrey Regentov Avatar answered Sep 21 '22 15:09

Andrey Regentov


Best solution I found is this:

  1. Open DDMS(Window->Open Perspective->DDMS)
  2. In DDMS in the left side there is a Devices tab, a little below there is a list of items, choose little triangle called View Menu, under it find Reset adb and launch it.

After that I get my emulator detected.

like image 39
hipokito Avatar answered Sep 24 '22 15:09

hipokito


Create new AVD following Window->AVD Manager->New (Give a name to your device & select the target) -> Create AVD.

Select the AVD that you created and Click Start to launch the devie.

Only on launching, the device is displayed under adb devices.

like image 20
Priya Kathir Avatar answered Sep 22 '22 15:09

Priya Kathir