Google Awareness API v9.6 is missing

岁酱吖の 提交于 2019-12-01 05:42:03

问题


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


回答1:


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"



来源:https://stackoverflow.com/questions/39703220/google-awareness-api-v9-6-is-missing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!