Menu Home

Debuggin Android Wear over Bluetooth

It’s pretty straight forward to setup debuggin of your android wear device via Bluetooth, until it’s not.

Under normal circumstances you can follow this guide and it will work:
https://developer.android.com/training/wearables/apps/bt-debugging.html

But then sometime when you run,
adb forward tcp:4444 localabstract:/adb-hub
adb connect localhost:4444

You get the following error:
adb server is out of date. killing...
* daemon started successfully *
unable to connect to localhost:4444:4444

Or you get
adb server version (31) doesn't match this client (36); killing...
What is wrong, it’s trying to connect to 4444:4444, that doesn’t look right.

The problem is that you most likely have another adb deamon running, on my machine it’s due to the HTC Manager or if I start Android Studio before I setup the connection from the command line.

Another issue that I have come across is that I’m not able to use localhost, but once i use 127.0.0.1 instead it works.

Finally if it is still unable to work, you can use the android wear app on your device to see if that can send a test message to the wear device. If that doesn’t work the entire bluetooth stack on either phone or watch is in some garbage state, and you can try to disable/enable bluetooth, or do a reboot of your device.

Categories: Software

Tagged as:

Simon J.K. Pedersen

Leave a Reply

Your email address will not be published. Required fields are marked *