如何使用 wear OS 应用程序将 avd wear 模拟器与我的 phone 连接?
How to connect avd wear emulator with my phone using the wear OS app?
我需要将 avd wear 模拟器连接到我的 smartphone。当我在此 link https://developer.android.com/training/wearables/get-started/creating#pair-phone-with-avd 搜索文档时,它说转到设置然后设备设置然后点击模拟器。我不明白它在谈论哪些设置和设备设置。我 phone 中的 wear os 应用程序一直显示“正在等待模拟器连接”。我真的坚持这一点。任何帮助将不胜感激。
您可以使用 Android Studio 配对助手。
来自文档:
From the device dropdown in Android Studio, click Wear OS emulator
pairing assistant. Select a phone and a Wear AVD to pair with one
another. If none are available, click View AVD Manager to set up a
phone or watch AVD. Then click Next.
Android Studio attempts to launch and set up a bridge between the two
devices. If you do not have the Wear OS app installed on the phone,
you will be prompted to download the Companion app from the Play
Store.
If prompted, open the Companion app once it is downloaded. On the
phone, in the Wear OS app, begin the standard pairing process. For
example, on the welcome screen, tap the Set It Up button.
Alternatively, if an existing watch is already paired, in the upper
left drop-down, tap Add a New Watch. On the phone, in the Wear OS app,
tap the Overflow button, and then tap Pair with Emulator.
https://developer.android.com/training/wearables/get-started/creating#pairing-assistant
此功能仅适用于 Android11+
终于成功了。我在我的 avd 模拟器中启用了开发人员选项,并从开发人员选项中启用了 adb 调试和蓝牙调试。然后按照步骤将avd模拟器连接到我的phone。感谢@selcukokuyucu 的帮助,但不幸的是我的 smartphone.
中有 android 7.1.1
我需要将 avd wear 模拟器连接到我的 smartphone。当我在此 link https://developer.android.com/training/wearables/get-started/creating#pair-phone-with-avd 搜索文档时,它说转到设置然后设备设置然后点击模拟器。我不明白它在谈论哪些设置和设备设置。我 phone 中的 wear os 应用程序一直显示“正在等待模拟器连接”。我真的坚持这一点。任何帮助将不胜感激。
您可以使用 Android Studio 配对助手。
来自文档:
From the device dropdown in Android Studio, click Wear OS emulator pairing assistant. Select a phone and a Wear AVD to pair with one another. If none are available, click View AVD Manager to set up a phone or watch AVD. Then click Next.
Android Studio attempts to launch and set up a bridge between the two devices. If you do not have the Wear OS app installed on the phone, you will be prompted to download the Companion app from the Play Store.
If prompted, open the Companion app once it is downloaded. On the phone, in the Wear OS app, begin the standard pairing process. For example, on the welcome screen, tap the Set It Up button. Alternatively, if an existing watch is already paired, in the upper left drop-down, tap Add a New Watch. On the phone, in the Wear OS app, tap the Overflow button, and then tap Pair with Emulator.
https://developer.android.com/training/wearables/get-started/creating#pairing-assistant
此功能仅适用于 Android11+
终于成功了。我在我的 avd 模拟器中启用了开发人员选项,并从开发人员选项中启用了 adb 调试和蓝牙调试。然后按照步骤将avd模拟器连接到我的phone。感谢@selcukokuyucu 的帮助,但不幸的是我的 smartphone.
中有 android 7.1.1