开发者

Should I worry about DDMS console log messages "Can't bind to local nnnn for debugger"?

I'm new to Android programming (and Eclipse IDE and Android emulator). I've got Hello World and some of Notepad working, but I'm still constantly getting quite a few DDMS console log messages (shown below) about not being able to bind locals for debugg开发者_如何学Goer.

[2010-05-29 21:03:16 - ddms] Can't bind to local 8601 for debugger
[2010-05-29 21:05:26 - Device] Failed to delete temporary package: device (emulator-5556) request rejected: device not found
[2010-05-29 21:06:47 - ddms] Can't bind to local 8600 for debugger
[2010-05-29 21:07:05 - ddms] Can't bind to local 8601 for debugger
[2010-05-29 21:07:05 - ddms] Can't bind to local 8602 for debugger

And so on. Is this a problem? Can I get rid of these messages somehow?


In Eclipse, goto

1) Windows->Preference

2) Expand Android menu in the side of the Preference Window.

3) Now select DDMS from it.

4) Then Set the Base local debugger port to "8601" and enable "Use ADBHOST" checkbox and the ABDHOST value should be "127.0.0.1".

5) Click apply and ok.

6) Now you have to restart your ADB, for this you have to login as root user(Assuming linux user) and navigate to Platfrom tools folder of your Android SDK. Then execute,

 ./adb kill-server
 ./adb start-server

You will be able to see the message "Daemon started Successfully" . If not repeat step 6 once again until you see the success message.


You can get rid of the the messages by adding following to your hosts file:

127.0.0.1 localhost

ps. hosts file can be found from c:\windows\system32\drivers\etc\hosts or if you are on linux /etc/hosts


In my situation the problem has been solved by a uninstalling all Java 7. The debugger is now working again!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜