Android Wear模拟器:如何调试模拟器上? [英] Android Wear Emulator: How to debug on Emulator?
问题描述
我有一个简单的应用程序,其中在我发送一些消息磨损,接收一些磨损。现在,我怎么测试这个时候我只是有一个仿真真正的手持设备?无论我做什么,模拟器无法连接到该设备。在我的手机Android Wear应用,它总是说目标:断开
。我曾尝试下面的命令所有的排列组合:
亚行转发TCP:4444 localabstract:/ ADB-枢纽;
亚行本地主机连接:4444
亚行-d转发TCP:5601 TCP:5601
ADB -s 225bac78 -d转发TCP:5601 TCP:5601
与手持设备的名字从更换225bac78 ADB设备
I have a simple application where in I am sending some message to Wear and receiving some from 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.
I have tried all permutations and combinations of following commands: adb forward tcp:4444 localabstract:/adb-hub; adb connect localhost:4444 adb -d forward tcp:5601 tcp:5601
adb -s 225bac78 -d forward tcp:5601 tcp:5601
replace 225bac78 with your handheld device name from adb devices
这篇关于Android Wear模拟器:如何调试模拟器上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!