[英]Android Wear Emulator: How to debug on Emulator?
I have a simple application where in I am sending some message to Wear and receiving some from wear. 我有一个简单的应用程序,其中我向Wear发送一些消息,并从Wear接收一些消息。 Now how do I test this when I just have a real handheld device with a emulator?
现在,当我只有带有仿真器的真实手持设备时,该如何测试? Whatever I do, the emulator does not connect to the device.
无论我做什么,模拟器都不会连接到设备。 In the Android Wear app on my mobile, it always says Target: disconnected.
在我的手机上的Android Wear应用中,总是显示“目标:已断开连接”。
I have tried all permutations and combinations of following commands: adb forward tcp:4444 localabstract:/adb-hub; 我已经尝试了以下命令的所有排列和组合:adb forward tcp:4444 localabstract:/ adb-hub; adb connect localhost:4444 adb -d forward tcp:5601 tcp:5601
亚行连接本地主机:4444亚行-d转发tcp:5601 tcp:5601
I usually run ddms from the Android SDK tools directory. 我通常从Android SDK工具目录运行ddms。 It should attach to the emulator.
它应该连接到仿真器。
adb -s 225bac78 -d forward tcp:5601 tcp:5601
用adb devices
掌上设备名称替换225bac78
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.