Places类从Android Play服务9.2.0中删除 [英] Places class is removed from android play services 9.2.0

查看:111
本文介绍了Places类从Android Play服务9.2.0中删除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天,我更新到谷歌播放服务9.2.0。
我收到错误


com.google.android.gms.location.places.Places

找不到

。 (b



$。$ d $ p $。
.addApi(Places.PLACE_DETECTION_API)

任何导致我可以在其中找到GEO_DATA_API,PLACE_DETECTION_API



在此先感谢。

解决方案

在9.0.2中,'places'库位于'location'库内。在9.2中,您需要将'places'库添加为依赖项:

  compile'c​​om.google.android.gms:play- services-places:9.2.0'


Today, I updated to google play services to 9.2.0. I got an error

com.google.android.gms.location.places.Places

not found. that broke below two lines

.addApi(Places.GEO_DATA_API)
.addApi(Places.PLACE_DETECTION_API)

any leads on where i can find GEO_DATA_API, PLACE_DETECTION_API

Thanks in advance.

解决方案

In 9.0.2, the 'places' library was inside 'location' library. In 9.2, you need to add 'places' library as dependency:

compile 'com.google.android.gms:play-services-places:9.2.0'

这篇关于Places类从Android Play服务9.2.0中删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆