【发布时间】: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