简体   繁体   English

Google Awareness API v9.6缺失

[英]Google Awareness API v9.6 is missing

I'm interested in new maps styling feature, which is added in 9.6 Google Play Services release, but also I'm using Awareness API. 我对新的地图样式功能感兴趣,这个功能在9.6 Google Play Services版本中添加,但我也在使用Awareness API。 In my build.gradle I have 在我的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'

and some other play-services/firebase modules. 和其他一些游戏服务/ firebase模块。 Previously with v9.4 that worked, but now I'm getting Failed to resolve: com.google.android.gms:play-services-contextmanager:9.6.1 BTW, all other libs with 9.6 version resolved correctly. 以前v9.4有效,但现在我Failed to resolve: com.google.android.gms:play-services-contextmanager:9.6.1 BTW,所有其他具有9.6版本的lib正确解析。 Also I tried to use 9.6.0 and 9.+, nothing worked. 我也尝试使用9.6.0和9. +,没有任何效果。

Please, don't suggest adding compile 'com.google.android.gms:play-services:9.6.1' because it's increasing compile time dramatically. 请不要建议添加 compile 'com.google.android.gms:play-services:9.6.1' 因为它会大大增加编译时间。

UPD: just discovered, that Activity Recognition is included in location package, so I don't need awareness. UPD:刚刚发现,活动识别包含在位置包中,所以我不需要意识。 But it's not an answer 但这不是答案

Starting 9.6.0 it was renamed to "awareness", so you should use 从9.6.0开始它被重命名为“意识”,所以你应该使用

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

You can check it in "Google Repository rev 35", simply navigate to: 您可以在“Google Repository rev 35”中查看,只需导航至:

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

and there you will see that there is no 9.6.0 and 9.6.1 folders inside "play-services-contextmanager" but there is new folder "play-services-awareness" with 9.6.0 and 9.6.1 在那里你会看到“play-services-contextmanager”里面没有9.6.0和9.6.1文件夹,但有一个新的文件夹“play-services-awareness”,9.6.0和9.6.1

Not sure is it permanent or temporary, because as you said in documentation it's still named "play-services-contextmanager" 不确定它是永久的还是临时的,因为正如你在文档中所说的那样它仍然被称为“play-services-contextmanager”

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

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