簡體   English   中英

Google Awareness API v9.6缺失

[英]Google Awareness API v9.6 is missing

我對新的地圖樣式功能感興趣,這個功能在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'

和其他一些游戲服務/ 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:剛剛發現,活動識別包含在位置包中,所以我不需要意識。 但這不是答案

從9.6.0開始它被重命名為“意識”,所以你應該使用

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

您可以在“Google Repository rev 35”中查看,只需導航至:

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

在那里你會看到“play-services-contextmanager”里面沒有9.6.0和9.6.1文件夾,但有一個新的文件夾“play-services-awareness”,9.6.0和9.6.1

不確定它是永久的還是臨時的,因為正如你在文檔中所說的那樣它仍然被稱為“play-services-contextmanager”

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM