Problems" How to debug and deploy for the Android Wear which do not have USB Debugging function:
- download SDK Platform Tools
- open cmd with corresponding file path
- open 'Debug over WiFi' function in Android Wear
- type 'adb connect (IP address):(port number)' in command prompt, e.g. 192.168.5.112:5555
- connected detail can found in 'adb help' or https://developer.android.com/training/wearables/get-started/debugging
If error 'more than one device/emulator' occurs: Try to
- adb kill-server or
- taskkill /f /im adb.exe
Connect the debugger to the watch" In this final step, you'll use everything: the debugger, the phone, and the watch.
-
Connect the phone to your development machine with a USB cable.
-
Run these two commands in the debugger:
1: adb forward tcp:4444 localabstract:/adb-hub or adb -s 243e016f forward tcp:4444 localabstract:/adb-hub
2: adb connect 127.0.0.1:4444