android – 选择性Google Play Services API未找到类

我已经更新了最新版本的播放服务,目前是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'

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

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;

不能解决,尽管在他们的文档中,它表明位置服务也应该提供地方功能.

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

解决方法

根据@Selvin的评论,我设法找到我的问题的解决方案.

看来,在9.x.x版本上,Google Play Services API的地方资讯已从Play-services位置转移到Play-services地方.
因此,现在我对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'

相关文章

Android 如何解决dialog弹出时无法捕捉Activity的back事件 在...
Android实现自定义带文字和图片的Button 在Android开发中经常...
Android 关于长按back键退出应用程序的实现最近在做一个Andr...
android自带的时间选择器只能精确到分,但是对于某些应用要求...