更新后 - 崩溃com.google.android.gms:play-services:5.2.8

Kam*_*icz 22 java android gradle

我的依赖:

compile "com.android.support:appcompat-v7:20.+"
compile 'com.google.android.gms:play-services:5.2.08'
compile 'com.android.support:support-v4:21.0.+'
Run Code Online (Sandbox Code Playgroud)

但仍然:Google Play服务已过时.需要5208000但找到5089036

这怎么可能?

更新这项工作:

compile 'com.google.android.gms:play-services:5.0.89'
Run Code Online (Sandbox Code Playgroud)

要么

compile 'com.google.android.gms:play-services:6.1.11'
Run Code Online (Sandbox Code Playgroud)

要么

compile 'com.google.android.gms:play-services:6.+'

小智 34

build.gradle中Google Play服务版本更改为设备或模拟器上的版本.

compile 'com.google.android.gms:play-services:5.0.89' 
Run Code Online (Sandbox Code Playgroud)


Mic*_*ele 4

您需要从设备上的 Play 商店更新 Google Play 服务,如果您没有看到任何更新,请等待发布

Play 商店 - Google Play 服务

或者在 Google 上搜索并安装新的 apk 或使用旧版本,例如 5.0.77 或 5.0.89

  • Google Play Services 5.2 尚未推出。除非您正在开发使用 Google Fit 预览版的应用程序,否则不应使用此版本进行开发。按照其他答案中的建议使用版本 5.0.89。 (8认同)