Android Wear模拟器显示错误SERVICE_VERSION_UPDATE_REQUIRED为谷歌游戏服务 [英] Android Wear Emulator show Error SERVICE_VERSION_UPDATE_REQUIRED for Google Play services

查看:497
本文介绍了Android Wear模拟器显示错误SERVICE_VERSION_UPDATE_REQUIRED为谷歌游戏服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我测试的磨损模拟器Wear应用和使用eclipse开发。

I am testing android wear app on Wear Emulator and using eclipse to develop.

在磨损应用有如下code中的onCreate:

In wear app there are code as below in onCreate:

mGoogleApiClient = new GoogleApiClient.Builder(this).addConnectionCallbacks(this).addOnConnectionFailedListener(new GoogleApiClient.OnConnectionFailedListener()
{
    @Override
    public void onConnectionFailed(ConnectionResult result)
    {
    Log.d(TAG, "onConnectionFailed: " + result);
    }
}).addApi(Wearable.API).build();
mGoogleApiClient.connect();

当我在模拟器磨损运行此我得到了如下错误:

When I run this on Wear emulator I got error as below:

W/GooglePlayServicesUtil(1809): Google Play services out of date.  Requires 5089000 but found 5077534
D/WearApp(1809): onConnectionFailed: ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null}

如果任何一个有解决方案或提示为,那么请让我知道。

If any one have solution or tips for that then please let me know.

谢谢!

推荐答案

我相信我有同样的错误。

I believe I had the same error.

如果您的build.gradle是:

If your build.gradle is:

编译com.google.android.gms:发挥服务:+

将其更改为:

编译com.google.android.gms:发挥服务:5.0.89

这是因为谷歌并没有完全推出最新的播放服务的设备,但它已经提供给开发者。
作为替代方案,您可以检查是否有更新,以在SDK管理器WearEmulator。

that's because Google didn't completely roll out the latest play services to devices, but it's already available to developers. As an alternative solution, you can check if there's an update to the WearEmulator on the SDK Manager.

这篇关于Android Wear模拟器显示错误SERVICE_VERSION_UPDATE_REQUIRED为谷歌游戏服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆