Constantly getting ...DeviceMonitor] Failed to start monitoring

22,342

Solution 1

ok so here's what fixed it for me and I think this is retarded that I have to do this. I'm on Windows 7 64 bit, but maybe 2 or 3 times during the day I get this same error. I tried the reboot thing sometimes it worked, sometimes it does not...

I have to:

  1. Close Eclipse
  2. Unplug USB
  3. Open task manager and find the "adb.exe *32" and End Task
  4. Open Eclipse (not done yet)
  5. "Clean All" (clean all not just project)
  6. Then build the project (for me just building the project works)
  7. Plug USB back in and there ya go!

Always works for me. Like I said retarded, Android dev sucks, but makes money... iPhone/xCode is BETTER!

If anyone knows of an update to something I can down load to avoid doing this all the time, I'd love to know!

Solution 2

I had the same problem - Try to use a different USB port. From my experience, the USB connections on the PC front are not recommended.

Solution 3

Year almost 2018 I just had same problem which doubled my gray hairs. It turned out my test phone Samsung Galaxy S6 does not like the USB ports on my Apple Thunderbolt Display. I just plugged the USB cable directly to my Mac Pro and it worked right away. Funny thing is my Google Pixel Phone never complains about the USB port on Thunderbolt.

Solution 4

To keep the error message from showing up I did the following on Eclipse 3.7:

  • Window->Preferences
  • On the left side tree select Android->DDMS
  • In the DDMS settings window choose logging level "Assert"
  • Click "Apply"

Solution 5

You may have to kill the deamon and restart it. Following are the steps;

  1. open a command prompt and locate the SDK's platform tools folder. E.g.:- cd c:\android-sdk-windows\platform-tools

  2. then execute "adb kill-server" command. You will see the disconnected icon in run configuration panel is now cleared.

  3. then again execute "adb start-server" command.

  4. Then try running the device, if it doesn't work try restarting the eclipse.

Share:
22,342
makar
Author by

makar

Updated on October 18, 2020

Comments

  • makar
    makar over 3 years

    I find that after running or debugging my application a few times using eclipse, that I get the above output in my console (in red) and I get no feedback from Dalvik as to the connection status to my phone is going. My application will still debug etc. I just get nothing useful in my Console.

    Any ideas how to fix this? It appears intermittent. It starts doing it after a few minutes, continues to do it for quite a while and occasionally goes away again. This has happened on my last laptop and now on my new laptop with a completely fresh install etc.

  • Amir Rachum
    Amir Rachum about 12 years
    I have the same problem as the OP, but resetting only occasionally helps and for a short time, if at all.
  • Dori
    Dori about 12 years
    Switch to IntelliJ IDEA - much better and no problems! jetbrains.com/idea/features/google_android.html
  • Tim Maxey
    Tim Maxey about 12 years
    Amir, check out my "answer" with steps 1 through 7. You ever find something else that fixed that takes less steps?
  • Androidcoder
    Androidcoder over 10 years
    tks, killing the adb.exe did it. first year of development is spending 10 minutes writing code and the rest of the day researching stack overflow for a new cryptic error message and doing odd fixes like this one. I only clean as a last resort however, as that can initiate the dreaded "R not found" error on all lines of codes involving a resource.
  • Twice Circled
    Twice Circled over 10 years
    All I had to do was kill adb.exe as instructed above. Thanks.
  • theblang
    theblang over 10 years
    I only needed steps 1-3.
  • Muhammad Tanweer
    Muhammad Tanweer over 10 years
    Worked for me. Nothing else worked but following these steps worked.
  • David Hackro
    David Hackro over 6 years
    the solution,connect the usb in other port WDF!
  • reducing activity
    reducing activity about 4 years
    2020, the same solution worked - one USB port was disliked, one not and complete lack of any useful error message....
  • reducing activity
    reducing activity about 4 years
    This will just hide the problem