2016-09-26 27 views
3

我对新地图样式功能感兴趣,它在9.6 Google Play服务版本中添加,但我也使用Awareness API。在我build.gradle我有Google Awareness API v9.6缺失

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' 

和其他一些游戏服务/火力模块。以前与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:刚发现,活动识别包含在位置包中,所以我不需要知道。但它不是一个答案

+0

这个问题似乎与谷歌本身有关。 contextmanager没有9.6.1版本,只有9.4.0。 –

+0

@SrikarReddy我确定它是。等待谷歌的家伙来看看这个) –

回答

12

启动9.6.0更名为“意识”,所以你应该使用

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

您可以检查它在“谷歌修订版库35”,只需导航到:

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

那里你会看到“play-services-contextmanager”里面没有9.6.0和9.6.1文件夹,但有9.6.0和9.6的新文件夹“play-services-awareness”。 1

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

+0

特别感谢提示,现在我知道在这种情况下搜索 –

+0

非常感谢。这个问题让我疯狂。 – Ammar