2

I known there is lots of answers about this question, but still my mobile device not connected to eclipse IDE.

The following is what I already did:
1. restart adb or type command in cmd "adb kill-server/adb restart-server", eclipse find nothing in the devices.
2. execute netstat -aon|findstr "5037", finding there is only one process "adb" occupy the port
3. check the phone driver in device management, finding the phone is install correctly.
4. execute "adb devices":

List of devices attach    
1f06cbba        device    

I thought may it's my phone's problem, so i remove it, and create a virtual device avd, the eclipse still don't work.

My Operating System is Windows 7 and Eclipse IDE Kepler.

can any body help me to successful run my first android helloworld?

Thanks a lot!!

additional explanation

  1. debug mode is in phone is ON
  2. adb is in the variable %path%(maybe some should answered)
  3. try the latest adt-bunble in adroid website, it still don't work.
Brendon
  • 1,368
  • 1
  • 12
  • 28
buf1024
  • 31
  • 6

5 Answers5

2

Try turning "developer options" on in your device. (Option you haven't tried).

To access these settings, open the Developer options in the system Settings. On Android 4.2 and higher, the Developer options screen is hidden by default. To make it available, go to Settings > About phone and tap Build number seven times. Return to the previous screen to find Developer options.

Adhikari Bishwash
  • 2,770
  • 28
  • 32
0

Have you added adb in your class path variables? If not , you should append the class path with following paths :

 path-to-sdk/android-sdk/platform-tools
 path-to-sdk/android-sdk/tools
Ab5
  • 606
  • 9
  • 25
  • @buf1024 could you post a screenshot or your error log of what exactly haapens when to try to run the program? – Ab5 Feb 11 '14 at 05:33
  • [2014-02-11 13:32:55 - DeviceMonitor] Sending Tracking request failed! [2014-02-11 13:32:55 - DeviceMonitor] Adb connection Error:远程主机强迫关闭了一个现有的连接。 [2014-02-11 13:32:56 - DeviceMonitor] Connection attempts: 1 – buf1024 Feb 11 '14 at 06:57
0

Try re-installing ADT Plugin. Worked for me last time.

Krrishnaaaa
  • 689
  • 11
  • 23
0

Install your current mobile Adb USB driver and update Google USB driver

Natarajan R
  • 63
  • 1
  • 5
0

Check the MTP/PTP mode for your device:
http://lh3.ggpht.com/-8UMNs7Vg_dY/UVC6_6PnbDI/AAAAAAAAAIg/NjKOvAp9cDs/02-select-camera-ptp-mode_thumb%25255B1%25255D.png%3Fimgmax%3D800

In some devices you can find this under Settings->Storage->Menu Options(three vertical bullet squares).

When you say->the phone debug mode is open, i assume your developer options usb debugging is already enabled

Pararth
  • 8,114
  • 4
  • 34
  • 51