Google Play服务已过期.需要10084000但找到9879470.无法更新

Bjø*_*gen 25 android firebase

我正在使用Firebase制作Android应用.这些是造成问题的线条:

dependencies {
    compile 'com.google.firebase:firebase-core:10.0.1'
    compile 'com.google.firebase:firebase-auth:10.0.1'
Run Code Online (Sandbox Code Playgroud)

我收到此错误:

Google Play services out of date.  Requires 10084000 but found 9879470. 
Run Code Online (Sandbox Code Playgroud)

我在模拟器上运行应用程序.似乎无法在模拟器上更新GPS,因为它没有Google Play商店.

在SDK Manager中,它说Google Player服务的版本是38.

没有明显的方法来更新它.

Bob*_*der 35

2017年2月28日更新:API 25的模拟器映像的第4版已经发布,可供下载.它包含支持Firebase 10.2.0的Google Play Services 10.2.98.


支持火力地堡10.0.1的仿真器系统图像尚未发布的API 25. API 23牧师19系统映像支持10.0.1.

你有三个选择:

  1. 等待发布支持10.0.1的API 25仿真器系统映像
  2. 使用API​​ 23系统映像的Rev 19创建仿真器设备.在独立SDK管理器中,模拟器映像按API分组,其名称类似于"Google API ... System Image".确保安装了Rev 19.
  3. 在您的构建中,降级到以前版本的Firebase以允许使用API​​ 25仿真器映像.

运行模拟设备时,您可以转到"设置">"应用"并选择"Google Play服务",查看安装的Google Play服务版本.

  • 您应该能够使用9.8.0或任何[先前版本](https://developers.google.com/android/guides/releases):9.6.1,9.6.0,9.4.0等. (2认同)

Jam*_*man 11

我刚刚通过更改依赖项的版本来解决它.只需使用:

compile 'com.google.firebase:firebase-core:9.6.0'
compile 'com.google.firebase:firebase-auth:9.6.0'
Run Code Online (Sandbox Code Playgroud)