无法通过蓝牙调试 Android Wear - 无法连接到本地主机 [英] Trouble debugging android wear over bluetooth - Unable to connect to localhost

查看:21
本文介绍了无法通过蓝牙调试 Android Wear - 无法连接到本地主机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 Moto360 无法通过蓝牙进行调试.

I can't debug over bluetooth with my Moto360.

首先,我启用了ADB 调试";和通过蓝牙调试"在 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 连接配套手机时,我可以看到它使用以下命令连接到 adb:

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.

我可以连接到我的个人电脑,但每次在我的工作电脑上尝试时,我都会得到:无法连接到 localhost: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

推荐答案

我收到以下错误消息:

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 connect 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆