Google Awareness API v9.6缺失 [英] Google Awareness API v9.6 is missing

查看:132
本文介绍了Google Awareness API v9.6缺失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

  compile'c​​om.google。 android.gms:play-services-maps:9.6.1'
compile'c​​om.google.android.gms:play-services-contextmanager:9.6.1'
compile'c​​om.google.android。 gms:play-services-location:9.6.1'

和其他一些play-services / firebase模块。以前v9.4有效,但现在我得到无法解析:com.google.android.gms:play-services-contextmanager:9.6.1
BTW,9.6版本的所有其他库解析正确。也试图使用9.6.0和9. +,没有任何工作。



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



UPD:刚发现,活动识别包含在位置包中,因此我不需要知道。但它不是答案

解决方案

从9.6.0开始,它被重命名为

  compile'c​​om.google.android.gms:play-services-awareness:9.6.1'
code>

您可以在Google Repository rev 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


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. In my build.gradle I have

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. 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. Also I tried to use 9.6.0 and 9.+, nothing worked.

Please, don't suggest adding compile 'com.google.android.gms:play-services:9.6.1' because it's increasing compile time dramatically.

UPD: just discovered, that Activity Recognition is included in location package, so I don't need awareness. But it's not an answer

解决方案

Starting 9.6.0 it was renamed to "awareness", so you should use

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

You can check it in "Google Repository rev 35", simply navigate to:

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

Not sure is it permanent or temporary, because as you said in documentation it's still named "play-services-contextmanager"

这篇关于Google Awareness API v9.6缺失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆