我正在使用 Firebase 制作一个 Android 应用程序。这些是导致问题的行:
dependencies {
compile 'com.google.firebase:firebase-core:10.0.1'
compile 'com.google.firebase:firebase-auth:10.0.1'
我收到此错误:
Google Play services out of date. Requires 10084000 but found 9879470.
我在模拟器上运行应用程序。似乎无法在模拟器上更新 GPS,因为它没有 Google Play 商店。
在 SDK Manager 中,显示 Google Player 服务的版本是 38。
也没有明显的更新方法。
最佳答案
2017 年 2 月 28 日更新:API 25 的第 4 版模拟器镜像已发布,可供下载。它包含支持 Firebase 10.2.0 的 Google Play Services 10.2.98。
尚未针对 API 25 发布支持 Firebase 10.0.1 的模拟器系统镜像。API 23 的 Rev 19 系统镜像确实支持 10.0.1。
您有三个选择:
- 等待发布支持 10.0.1 的 API 25 模拟器系统镜像
- 使用 API 23 系统镜像的 Rev 19 创建一个模拟器设备。在独立 SDK 管理器中,仿真器图像按 API 分组,名称类似于“Google APIs...系统图像”。确保您已安装 Rev 19。
- 在您的构建中,降级到以前版本的 Firebase 以允许使用 API 25 模拟器镜像。
运行模拟设备时,您可以通过转到设置 > 应用并选择 Google Play 服务来查看已安装的 Google Play 服务版本。
关于android - Google Play 服务已过时。需要 10084000 但找到 9879470。无法更新,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41100106/