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

前端之家收集整理的这篇文章主要介绍了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'
原文链接:https://www.f2er.com/android/311624.html

猜你在找的Android相关文章