首页 文章

Android可穿戴模拟器无法连接usb连接手机

提问于
浏览
2

我'm trying to develop an android wearable application but I don' t有可穿戴设备 . 所以我正在使用Android可穿戴模拟器 . 我试图连接可穿戴模拟器和手机 . 手机用USB线连接 . 我的手机API版本是19.可穿戴模拟器版本20.我在手机中安装了Android Wear应用程序 . 我尝试通过ADB命令连接模拟器和设备 . 我不确定蓝牙是否需要在移动设备中打开,因为我认为USB电缆可以连接到可穿戴模拟器 .

Check The Device List

adb devices

Results

C:\ Program Files(x86)\ Android \ android-studio \ sdk \ platform-tools> adb devices HT365W906209设备仿真器-5554设备列表

AVD communication port to phone

adb -d forward tcp:5601 tcp:5601

Results

C:\ Program Files(x86)\ Android \ android-studio \ sdk \ platform-tools> adb -d forward tcp:5601 tcp:5601 C:\ Program Files(x86)\ Android \ android-studio \ sdk \ platform -tools>

执行上述命令后,我无法连接我的设备和模拟器 . I followed this tutorial.

This is android wear application in my phone.

enter image description here

1 回答

  • 10

    您和教程也没有提到您在Android Wear Companion应用程序中明确选择了 Pair with emulator . 所以请试一试:

    步骤1 - 选择“与新的可穿戴设备配对”

    pair with a new wearable

    步骤2 - 选择“与模拟器配对”

    pair with emulator

    然后ActionBar应该说 "Emulator - Connecting..." . 再次执行 adb forward 命令,它应该工作 .

相关问题