GooglePlayServicesUtil: Google Play services out of date. Requires 5089000 but found 5077534

随声附和 提交于 2019-12-01 21:12:10

The build.gradle on the wearable side needs to be updated to use play-services-wearable instead of just play-services like you have shown above.

So if you look at one of the samples like DataLayer provided in the Wear SDK, it uses something like this in wearable/build.gradle:

dependencies {
    compile 'com.google.android.gms:play-services-wearable:+'
}

I have put in a request to get this mentioned in the official documentation soon.

This happens when your mobile has old play-service and you are using new play-service lib. so all you need to update your google-play-service from your phone.

You can use

int googleServiceStatus = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);
    Dialog dialog = GoogleApiAvailability.getInstance().getErrorDialog(this,googleServiceStatus, 10);
    if(dialog!=null){
        dialog.show();
    }

this will show popup in case of any problem to get play-service.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!