Android 地点 API : Google Play Services Out of Date on Emulator

标签 android android-emulator google-play-services google-places-api

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

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

不幸的是,因为我没有物理设备,所以我必须在模拟器上进行测试。模拟器的镜像是 API 级别 22 x86,具有 Google API 目标。此外,我还尝试通过 build.gradle 文件包含 Google Play Services 库:

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

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

最佳答案

我遇到了同样的问题,不得不使用谷歌应用程序向下移动到 API 21 模拟器图像。那个是最新的,并且有效。

关于Android 地点 API : Google Play Services Out of Date on Emulator,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29597974/

相关文章:

ubuntu - Ubuntu 中的官方 Android 模拟器在哪里? (独立于 Android Studio 执行)

android - 编译错误 : "Conversion to Dalvik format failed: Unable to execute dex: Cannot merge new index 74303 into a non-jumbo instruction"

java - 在 android 中执行 OAUth 身份验证

android - Flutter - 无法获取 'https://google.bintray.com/exoplayer/com/google/android/gms/play-services-location/maven-metadata.xml'。收到状态码403

android - 如何调用系统默认播放器播放视频?

java - 如何仅将appium指定给一台设备

Android studio gradle 构建错误 : Could not get resource 'https://jcenter.bintray.com/.../.jar' in company firewall

android - 加速安卓模拟器

Android Studio 模拟器不加载 Windows 10

android - 标签管理器类在 Play Services 8.1.0 中消失了吗?