我最近开始学习如何在 Android 应用程序开发中创建 Google map Activity ,并且偶然发现了 Google Play 服务的问题。每当我将 gradle 构建依赖项设置为 compile 'com.google.android.gms:play-services-maps:11.0.4'
时,这是 play-services 的最新版本- map
,模拟器屏幕在运行我的 map 应用程序时卡在以下 View 上:
我已经让该应用在那里放置了一个多小时,但没有任何更改或更新。正如我在其他 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 模拟器卡在 "Google Play Services are Updating",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45403695/