android Wear 上的蓝牙调试失败 [英] Bluetooth debugging on android wear failing
问题描述
我一直在尝试通过蓝牙调试我的 Android Wear 应用程序,但遇到了一些问题.主要问题是,当连接失败时,我将成功运行应用程序并通过蓝牙进行调试.管道破裂后,我什么也没做,似乎可以在切换电话之外恢复连接.这显然不是一个可行的解决方案,所以我想知道是否还有其他人遇到过类似的问题.
I've been attempting to debug my android wear app via bluetooth and have been running into a few problems. The main problem is that I'll successfully be running the app and debugging via bluetooth when the connection fails. After the pipe is broken nothing I do seems to get the connection back outside of switching phones. This is obviously not a workable solution, so I was wondering if anyone else had run into any similar problems.
推荐答案
通过重新设置所有内容并再次按照开发人员指南设置蓝牙,我取得了一定程度的成功.
I've reached some degree of success by re-setting everything and following the developer guide again to setting up bluetooth.
- 在穿戴设备上关闭蓝牙调试
- 在穿戴式设备上关闭 ADB 调试
- 撤销对穿戴设备的调试授权(不确定是否有必要)
- 在手持设备上关闭 Wear 应用程序的蓝牙调试
- 杀死 adb 服务器 (adb kill-server)
- 重启adb服务器(adb服务器重启)
- 在穿戴设备上开启 ADB 调试
- 在穿戴设备上开启蓝牙调试
- 在手持设备上打开 Wear 应用程序的蓝牙调试
输入 adb 转发命令:
- Turn bluetooth debugging off on wear device
- Turn ADB debugging off on wear device
- Revoke debugging authorization on wear device (not sure if necessary)
- Turn bluetooth debugging off on wear app on handheld
- kill the adb server (adb kill-server)
- Restart adb server (adb server restart)
- Turn ADB debugging on on wear device
- Turn bluetooth debugging on on wear device
- Turn bluetooth debugging on on wear app on handheld
enter adb forwarding commands:
- adb forward tcp:4444 localabstract:/adb-hub
- adb 连接本地主机:4444
祈祷
这些步骤对我很有效.
这篇关于android Wear 上的蓝牙调试失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!