故障通过蓝牙调试的Android Wear - 无法连接到本地主机 [英] Trouble debugging android wear over bluetooth - Unable to connect to localhost
问题描述
我无法通过蓝牙与我Moto360调试。
I can't debug over bluetooth with my Moto360.
要开始我已经启用亚行调试和调试通过蓝牙的Moto360。我也通过其他手机启用了蓝牙调试。它显示:
To start I have enabled "ADB debugging" and "Debug over Bluetooth" on the Moto360. I have also enabled "Debugging over Bluetooth" via the companion phone. It shows:
主持人:断开
目标:连接
当我通过USB连接同伴的电话,我可以看到它使用连接到亚行:
When I connect the companion phone via USB, I can see it connect to adb using:
./adb devices
然后我尝试:
./adb forward tcp:4444 localabstract:/adb-hub
和则:
./adb connect localhost:4444
返回:
无法连接到本地主机:4444:4444
unable to connect to localhost:4444:4444
我已经尝试了很多东西像重置moto360,杀死ADB服务器,重新启动计算机,通过SDK管理器卸载平台工具和重新安装它们,尝试不同的端口号。似乎没有任何工作。
I've tried a lot of things like resetting the moto360, killing the adb server, rebooting the computer, uninstalling platform tools via sdk manager and reinstalling them, trying a different port number. Nothing seems to work.
我能够用我的个人电脑连接,但每次我想我的工作电脑上我得到的时间:无法连接到本地主机:4444:4444
I was able to connect with my personal computer, but every time I try on my work computer I get: unable to connect to localhost:4444:4444
推荐答案
我得到了以下错误消息:
I was getting the following error message:
unable to connect to localhost:4444: cannot connect to localhost:4444
no connection could be made because the target machine actively refused it (10061).
我用 ADB连接127.0.0.1:4444
而不是,我是与消息提示瞬间。
I used adb connect 127.0.0.1:4444
instead and I was prompted with the message instantaneously.
这篇关于故障通过蓝牙调试的Android Wear - 无法连接到本地主机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!