Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Constantly getting ...DeviceMonitor] Failed to start monitoring

Tags:

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.

like image 551
makar Avatar asked Dec 20 '11 15:12

makar


1 Answers

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!

like image 83
Tim Maxey Avatar answered Oct 19 '22 05:10

Tim Maxey