Google Play services out of date. Requires 11011000 but found 10289574

时光怂恿深爱的人放手 提交于 2019-11-27 02:07:44

Create emulator Nexus 5x with Android version O - api 26 - x86 or Android version Nougat - api 24 - x86

Then click on the 3 dots in the emulator and this will open the extanded window, there click on Google Play + update. And that will update Google Play Services to the latest update thats 11.0.55 today.

You have to downgrade the API in wearable gradle file.

The problem is that your device doesn't have up-to-date Google Play Services application.

To fix it change into this:

compile 'com.google.android.gms:play-services-wearable:10.0.0'
compile 'com.google.android.gms:play-services:10.0.0'

My solution is super weird: Goto Settings -> Apps -> System Apps -> Google Play Store My version was 10xxxxx which is weird because my watch updated on boot. So, I clicked Remove Update and the version changed to 11xxxxxx.

Ashish Prasad Sah

The problem here is the mismatch of google play services (version) on emulator and gradle file.

It can be solved by two ways:

  1. Remove the mismatch by downgrading the version of google play services (version) in gradle file to the Google Play Services (version) of the emulator.

  2. Upgrade the Google Play Services on the emulator.

This has been an ongoing issue with Wear for years (see for example Android Wear Google Play Services).

The best solution seems to be to not use the latest Play Services release. One option is to find a minimum version that seems to cover your targeted production devices; in your case, this sounds like something in the 10.2 range. Alternatively, pick the lowest release that includes all the functionality you need (I personally am using 9.8.0).

For reference, here is the Play Services release history: https://developers.google.com/android/guides/releases

Sometimes this error my occur when you pass the wrong web-client-id value

val gso = GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
                .requestIdToken(**web-client-id here**)
                .requestEmail()
                .build()

Use the value in the OAuth client id section indicated Web client (auto created by google service

promanowicz

As String wrote the Play Services are not updated on the device. Unfortunately In a WearOS world it might be that the Play Services are up-to date, but they are simply not available on the wearables. In that case you can use following methods to react:

GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();
int result = apiAvailability.isGooglePlayServicesAvailable(this);
if (result != ConnectionResult.SUCCESS) {
    ... 
} else {
     apiAvailability.getErrorDialog(this, result, REQUEST_CODE,this).show();
}

You have to upgrade Google Play Services and APIs for the image your emulator is using. Check out this answer, worked out for me (Android Studio 3.1): https://stackoverflow.com/a/49751932/2292056

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