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

android – 选择性Google Play Services API未找到类,第1张

概述我已经更新了最新版本的播放服务,目前是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-s 我已经更新了最新版本的播放服务,目前是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 – 选择性Google Play Services API未找到类全部内容,希望文章能够帮你解决android – 选择性Google Play Services API未找到类所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1132203.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-30
下一篇 2022-05-30

发表评论

登录后才能评论

评论列表(0条)

保存