Android Studio无法绑定到本地8602以进行调试

时间:2016-05-23 12:55:30

标签: android debugging android-studio adb

8:41:01 AM Can't bind to local 8600 for debugger
8:41:23 AM Can't bind to local 8601 for debugger
8:41:24 AM Can't bind to local 8602 for debugger
8:41:26 AM Can't bind to local 8603 for debugger
8:41:30 AM Can't bind to local 8604 for debugger
8:41:36 AM Can't bind to local 8605 for debugger
8:41:42 AM Can't bind to local 8606 for debugger
8:41:46 AM Can't bind to local 8608 for debugger
8:41:48 AM Can't bind to local 8610 for debugger
8:41:50 AM Can't bind to local 8613 for debugger
8:41:57 AM Can't bind to local 8622 for debugger
8:42:41 AM Can't bind to local 8628 for debugger

8:41:01 AM无法绑定到本地8600以获得调试器     8:41:23 AM无法绑定到本地8601以获得调试器     8:41:24 AM无法绑定到本地8602以获得调试器     8:41:26 AM无法绑定到本地8603以获得调试器     8:41:30 AM无法绑定到本地8604以获得调试器     8:41:36 AM无法绑定到本地8605以获得调试器     上午8:41:42无法绑定到本地

2 个答案:

答案 0 :(得分:7)

同时检查hosts档案。

<强>宿主

127.0.0.1       localhost.localdomain   localhost
::1             localhost.localdomain   localhost

这些行不应该被评论。 hint

答案 1 :(得分:3)

有类似的问题。我的问题是我的hosts文件(macOS上的 / etc / hosts )有以下额外的localhost条目:

10.0.1.12    localhost

删除该条目后,调试器开始工作!