Android 模拟器卡在 "Google Play Services are Updating"

标签 android google-maps android-emulator google-play google-play-services

我最近开始学习如何在 Android 应用程序开发中创建 Google map Activity ,并且偶然发现了 Google Play 服务的问题。每当我将 gradle 构建依赖项设置为 compile 'com.google.android.gms:play-services-maps:11.0.4' 时,这是 play-services 的最新版本- map ,模拟器屏幕在运行我的 map 应用程序时卡在以下 View 上:

Google Play services are updating

我已经让该应用在那里放置了一个多小时,但没有任何更改或更新。正如我在其他 StackOverflow 问题中读到的那样,我可以通过将我的 gradle 构建依赖项设置为旧版本来使应用程序正常运行,例如 compile 'com.google.android.gms:play-services-maps: 9.0.0',但这限制了我在我的应用程序中使用更新的 Android 功能和 API 的能力,例如 FusedLocationProviderClient。

我在 Nougat 7.1.1 上运行,并安装了以下 SDK 以尝试解决此 Google Play 更新问题:

  • Android SDK 构建工具
  • Android SDK 工具
  • Google Play APK 扩展库
  • Google Play 服务
  • 支持存储库 > Google 存储库

我没有找到任何特定于此“Google Play 服务正在更新”消息的 StackOverflow 线程。我该怎么做才能解决这个问题?

最佳答案

使用 API 24 或 API 26 Android Emulator 系统镜像,您就可以开始使用了。 API 25 尚未预装最新的 Google Play Store 应用程序。请注意屏幕截图,只有这些图片是“Google Play”版本。

Android Studio 3.0 AVD Manager - System Image Selection

关于Android 模拟器卡在 "Google Play Services are Updating",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45403695/

相关文章:

android - Google Map Api 中的 PlaceAutoComplete

android - 如何获取谷歌地图的生产 key ?

android - 我的应用程序可以在 android 2.2 和 android 2.3.3 模拟器上运行,但不能在我的手机 galaxy s android 2.3.5 上运行/阅读 facebook、twitter 联系人?

Android 模拟器 - 无法加载驱动程序

android - 不要让 AdMob 在模拟器上运行 (android 2.2)

android - 它是否等同于在 fragment 中调用 getActivity().findViewById 而不是 <any_inflated_layout>.findViewById?

android - 如何将自定义字体设置为android工具栏的副标题?

java - 在android中将值插入到sqlite数据库中

android - 拍照后返回 fragment

api - Google Maps API 上的雷达图像