繁体   English   中英

Google Awareness API v9.6缺失

[英]Google Awareness API v9.6 is missing

我对新的地图样式功能感兴趣,这个功能在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 BTW,所有其他具有9.6版本的lib正确解析。 我也尝试使用9.6.0和9. +,没有任何效果。

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

UPD:刚刚发现,活动识别包含在位置包中,所以我不需要意识。 但这不是答案

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

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文件夹,但有一个新的文件夹“play-services-awareness”,9.6.0和9.6.1

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM