Google Play服务投诉已过时

时间:2014-08-09 15:06:40

标签: android

而且它显然不是。

我刚刚使用最新的Google Play服务编写了一个APP,我已经将其设置为gradle:

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

但是当我打开我的APP时,会发出一个巨大的警告。

enter image description here

在LogCat中:

  

W / GooglePlayServicesUtil:Google Play服务已过期。需要5208000但找到5089070

如果我打开谷歌播放(按下Actualizar按钮),我可以看到我的Google Play服务已完全更新。

这是在genymotion模拟器以及nexus 5设备上发生的。

我尝试过这样的事情:

compile 'com.google.android.gms:play-services:5.2.8'

然而它抱怨:

  

错误:无法找到com.google.android.gms:play-services:5.2.8。   要求:       :mobile:unspecified> :BaseGameUtils:未指定

任何提示?

2 个答案:

答案 0 :(得分:16)

已修复

    compile 'com.google.android.gms:play-services:5.0.89'

我发现我的Android Studio正在下载某些版本的Google Play服务,该服务尚未在Google Play上发布。这意味着没有人在他们的设备上拥有最新的APK。因此,设置gradle以使用旧版本,将会成功

答案 1 :(得分:0)