Google Awareness API v9.6缺失

Dim*_*ira 3 android google-play-services google-awareness

我对新的地图样式功能感兴趣,这个功能在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'
Run Code Online (Sandbox Code Playgroud)

和其他一些游戏服务/ 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:刚刚发现,活动识别包含在位置包中,所以我不需要意识.但这不是答案

jaP*_*wel 12

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

compile 'com.google.android.gms:play-services-awareness:9.6.1'
Run Code Online (Sandbox Code Playgroud)

您可以在"Google Repository rev 35"中查看,只需导航至:

ANDROID_HOME/extras/google/m2repository/com/google/android/gms
Run Code Online (Sandbox Code Playgroud)

在那里你会看到"play-services-contextmanager"里面没有9.6.0和9.6.1文件夹,但是有一个新的文件夹"play-services-awareness",9.6.0和9.6.1

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