Trouble debugging android wear over bluetooth - Unable to connect to localhost

后端 未结 8 1061
粉色の甜心
粉色の甜心 2020-12-23 18:18

I can\'t debug over bluetooth with my Moto360.

To start I have enabled "ADB debugging" and "Debug over Bluetooth" on the Moto360. I have also ena

相关标签:
8条回答
  • 2020-12-23 18:28

    You can try that, at least, it works for me:

    your watch -> developer options -> adb debugging (once disable, then enable).

    After that,

    adb forward tcp:4444 localabstract:/adb-hub

    adb connect 127.0.0.1:4444

    0 讨论(0)
  • 2020-12-23 18:32

    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).
    

    I used adb connect 127.0.0.1:4444 instead and I was prompted with the message instantaneously.

    0 讨论(0)
  • 2020-12-23 18:32

    Try this instead

    adb connect 127.0.0.1:4444
    

    more: https://stackoverflow.com/a/35093813/2267994

    0 讨论(0)
  • 2020-12-23 18:32

    I found the answer

    first remove port forwarding;

    adb forward --remove tcp:4444
    

    then do port forwarding steps from the begining

    adb forward tcp:4444 localabstract:/adb-hub
    adb connect localhost:4444
    

    i fixed my problem with these steps

    0 讨论(0)
  • 2020-12-23 18:33

    Another solution.

    If you have connected the emulator you can see the same problem, just disconnect the emulator or shutdown and later repeat the commands that's all.

    0 讨论(0)
  • 2020-12-23 18:38

    I recommend this. If you have a emulator preview connected first go inside Android Wear app to the emulator and choose FORGET.

    Later use the commands all are using

    adb forward tcp:4444 localabstract:/adb-hub
    adb connect localhost:4444
    

    That work for me.

    0 讨论(0)
提交回复
热议问题