相关疑难解决方法(0)

Awareness API需要哪种依赖关系?

我想查看新的Awareness API,这是一个非常新的.我正在使用Play Services 9.0.2.该文档有这个例子:

GoogleApiClient client = new GoogleApiClient.Builder(context)
        .addApi(Awareness.API)
        .build();
client.connect();
Run Code Online (Sandbox Code Playgroud)

但是,没有提示需要添加哪些依赖项.任何的想法?

android google-awareness

3
推荐指数
1
解决办法
916
查看次数

Google Awareness API v9.6缺失

我对新的地图样式功能感兴趣,这个功能在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:刚刚发现,活动识别包含在位置包中,所以我不需要意识.但这不是答案

android google-play-services google-awareness

3
推荐指数
1
解决办法
550
查看次数