gpt4 book ai didi

Android 可穿戴设备 - 如何自动安装可穿戴应用程序

转载 作者:行者123 更新时间:2023-11-30 01:57:27 25 4
gpt4 key购买 nike

我在我的 android 项目中创建了两个简单的模块。一个模块称为 handHeld,另一个模块称为 wearable。在 handHeld 的 list 中,我将 wearable 设置为依赖项(系统已经为我设置了它)。我期待当我将 handHeld 加载到设备上时,它会自动将可穿戴设备同步到 watch 上,但我在模拟器上看不到它(在执行端口 fwd 之后)。 watch 和设备之间的通信正常,因为我可以看到出现和同步的通知。我如何才能让我的可穿戴应用程序在我将 handHeld 模块安装到我的设备上的同时加载到 watch 上?

最佳答案

它只会自动安装使用发布 keystore 签名的应用程序,如果您正在构建调试版本,则需要使用 adb 将其手动添加到您的 watch 。

Note: The automatic installation of wearable apps does not work when you are signing apps with a debug key and only works with release keys. See Packaging Wearable Apps for complete information on how to properly package wearable apps.

https://developer.android.com/training/wearables/apps/creating.html

关于Android 可穿戴设备 - 如何自动安装可穿戴应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32000884/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com