选择性Google Play Services API无法查找课程

Ion*_*gru 9 import android location google-play-services

我已将播放服务更新到最新版本,目前版本为9.2.0,我也想使用选择性模块进行谷歌播放服务.

//    compile 'com.google.android.gms:play-services:9.2.0'
compile 'com.google.android.gms:play-services-maps:9.2.0'
compile 'com.google.android.gms:play-services-analytics:9.2.0'
compile 'com.google.android.gms:play-services-gcm:9.2.0'
compile 'com.google.android.gms:play-services-location:9.2.0'
Run Code Online (Sandbox Code Playgroud)

我遇到的问题是,现在进口如下:

import com.google.android.gms.location.places.Place;

import com.google.android.gms.location.places.AutocompleteFilter;
import com.google.android.gms.location.places.AutocompletePrediction;
import com.google.android.gms.location.places.Place;
import com.google.android.gms.location.places.PlaceBuffer;
import com.google.android.gms.location.places.Places;
Run Code Online (Sandbox Code Playgroud)

无法解决,尽管在他们的文档中声明位置服务也应该提供Places功能.

有人可以帮我解决这个问题吗?谢谢.

Ion*_*gru 26

基于@Selvin添加的评论,我设法为我的问题找到了解决方案.

似乎在版本9.xx上,Google Play Services API for Places已从中play-services-location移入play-services-places.因此,现在我对Google Play Services API有以下依赖关系:

//    compile 'com.google.android.gms:play-services:9.2.0'
compile 'com.google.android.gms:play-services-maps:9.2.0'
compile 'com.google.android.gms:play-services-analytics:9.2.0'
compile 'com.google.android.gms:play-services-gcm:9.2.0'
compile 'com.google.android.gms:play-services-location:9.2.0'
compile 'com.google.android.gms:play-services-places:9.2.0'
Run Code Online (Sandbox Code Playgroud)