Android Places API:Google Play服务在模拟器上过时 [英] Android Places API: Google Play Services Out of Date on Emulator

查看:315
本文介绍了Android Places API:Google Play服务在模拟器上过时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Android应用中使用Google Places API的PlacePicker。但是,每当我尝试创建选择器时,都会收到以下错误消息:

  Google Play服务已过时。需要7095000,但找到6774470 

不幸的是,我被绑定到模拟器上进行测试,因为我没有物理设备。模拟器的图像是带有Google API目标的API级别22 x86。此外,我试图通过build.gradle文件包含Google Play服务库:

 'com.google.android。 gms:play-services:7. +'

另外,我更新了SDK中的Google Play服务经理。我究竟做错了什么?我如何更新我的Google Play服务,以便使用Places API?

解决方案

我有同样的问题,不得不使用谷歌应用程序向下移动到API 21模拟器图像。这是一个更新,并工作。


I am attempting to utilize the Google Places API's PlacePicker in my Android app. However, whenever I attempt to create the picker, I receive the following error message:

Google Play services out of date. Requires 7095000 but found 6774470

Unfortunately, I am tied to testing on the emulator because I do not own a physical device. The emulator's image is API level 22 x86 with Google APIs target. Furthermore, I have attempted to include the Google Play Services library through the build.gradle file:

'com.google.android.gms:play-services:7.+'

Also, I have updated Google Play Services in the SDK Manager. What am I doing wrong? How can I update my Google Play services so I can use the Places API?

解决方案

I had the same issue, and had to move down to API 21 emulator image with google apps. That one is more up to date, and works.

这篇关于Android Places API:Google Play服务在模拟器上过时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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