【问题标题】:Android - Do I need to target same play service version for App and wear?Android - 我需要为 App 和 Wear 定位相同的播放服务版本吗?
【发布时间】:2018-01-11 03:40:44
【问题描述】:

我最近在 build.gradle 中将我的 app 和 Wear 的 google play services 版本从 9.x 更新到了 11.x。我对应用程序本身没有任何问题。但是我遇到了穿戴设备的问题,无法与移动设备上的应用建立连接。

我在磨损时检查了将 playservices 降级到 9.x,它似乎可以正常工作。

我不确定可穿戴设备多久更新一次 Google Play 服务。它与操作系统更新本身有关吗?基于 Wear OS 的播放服务被限制更新?

这可能是一个有点愚蠢的问题,但我正在尝试了解 Wear OS 和播放服务之间的关系。

非常感谢任何与此相关的信息。

谢谢

【问题讨论】:

  • 我觉得版本不变比较好。
  • 是的,您需要为 google play 服务保持相同的版本,有时可能会导致崩溃。
  • @Jintin 我会降级播放服务版本。您对 Wear 上的游戏服务更新有任何想法吗?这种无声的推送就像移动设备一样吗?我们可以期望大多数可穿戴设备都使用最新的播放服务版本吗?
  • @ParasSantoki 对我上面的评论有什么想法吗?
  • 假设您的移动应用播放服务版本是 compile 'com.google.android.gms:play-services-gcm:11.6.2' 然后 Wear 版本像这个实现 'com.google.android.gms :play-services-wearable:11.6.2' 不是最新版本实现 'com.google.android.gms:play-services-wearable:11.8.0'

标签: android google-play-services wear-os


【解决方案1】:
suppose your mobile app google play services version is
compile 'com.google.android.gms:play-services-gcm:11.6.2'

Then Wear version should be like this
implementation 'com.google.android.gms:play-services-wearable:11.6.2'

Not latest version of google play services
implementation 'com.google.android.gms:play-services-wearable:11.8.0'

【讨论】:

  • 感谢您的回答。我的问题更多是关于 Android Wear 更新 Google Play 服务的频率。我敢肯定,一旦我们连接到网络,移动设备就会静默更新,并且想知道这是否与磨损的行为相同
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2023-03-14
  • 2015-11-17
  • 2011-03-24
  • 1970-01-01
  • 2014-08-16
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多