【问题标题】:Google Awareness API v9.6 is missing缺少 Google Awareness API v9.6
【发布时间】:2016-09-27 02:36:54
【问题描述】:

我对 9.6 Google Play Services 版本中添加的新地图样式功能感兴趣,但我也在使用 Awareness API。在我的build.gradle 我有

compile 'com.google.android.gms:play-services-maps:9.6.1'
compile 'com.google.android.gms:play-services-contextmanager:9.6.1'
compile 'com.google.android.gms:play-services-location:9.6.1'

和其他一些播放服务/firebase 模块。以前使用 v9.4 可以工作,但现在我得到了Failed to resolve: com.google.android.gms:play-services-contextmanager:9.6.1 顺便说一句,所有其他 9.6 版本的库都正确解析。我也尝试使用 9.6.0 和 9.+,但没有任何效果。

请不要建议添加 compile 'com.google.android.gms:play-services:9.6.1' 因为它会显着增加编译时间。

UPD:刚刚发现,Activity Recognition 包含在 location 包中,所以我不需要意识。但这不是答案

【问题讨论】:

  • 问题似乎出在谷歌本身。 contextmanager 没有 9.6.1 版本,只有 9.4.0。
  • @SrikarReddy 我敢肯定。等待谷歌的家伙来看看这个)

标签: android google-play-services google-awareness


【解决方案1】:

从 9.6.0 开始,它被重命名为“awareness”,所以你应该使用

compile 'com.google.android.gms:play-services-awareness:9.6.1'

您可以在“Google Repository rev 35”中查看它,只需导航到:

ANDROID_HOME/extras/google/m2repository/com/google/android/gms

您会看到“play-services-contextmanager”内没有 9.6.0 和 9.6.1 文件夹,但有 9.6.0 和 9.6.1 的新文件夹“play-services-awareness”

不确定它是永久的还是临时的,因为正如您在文档中所说,它仍然被命名为“play-services-contextmanager”

【讨论】:

  • 特别感谢提示,现在我知道在这种情况下在哪里搜索
  • 非常感谢。这个问题把我逼疯了。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-07-24
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多