When does isGooglePlayServicesAvailable return SERVICE_VERSION_UPDATE_REQUIRED?

According to the documentation GooglePlayServicesUtil.isGooglePlayServicesAvailable returns SERVICE_VERSION_UPDATE_REQUIRED when “The installed version of Google Play services is out of date”.

Does this mean that there is a new version of google play services in the play store?
Does this mean that the app needs a newer version than the one that is currently installed in the device?

  • Weird exception: Cannot cast String to Boolean when using getBoolean
  • Is there any way to receive a notification when the user powers off the device?
  • Android: Is it possible to use string/enum in drawable selector?
  • AndroidStudio : Cannot resolve symbol MainActivity
  • Retrofit and Centralized Error Handling
  • Alphabatize list of installed apps
  • How is this check done?

    Related posts:

    android: smoothScrollToPosition() not working correctly
    Seamless Looping with SoundPool on Android?
    Editable textview on click
    RecyclerView Adapter notifyDataSetChanged not working
    How can i view a video inside a videoview at some specific position?
    Get Updated Contacts in Android for Contact Sync
  • Getting error “Root access rejected” in android application
  • access outer class from inner nested enum
  • Android: content observer's “onChange()” method is called multiple times
  • Constants for resource types in Android
  • How to terminate android application while debugging in eclipse
  • Targeting the most appropriate API
  • 5 Solutions collect form web for “When does isGooglePlayServicesAvailable return SERVICE_VERSION_UPDATE_REQUIRED?”

    this means that the version of google play service you included in your app is higher than the one currently installed on the users device. the user needs to update their google play services in-order for your app to work correctly.

    if the result comes back with that error you can simply call this method to alert the user they need to update and it will take them there.

    GooglePlayServicesUtil.getErrorDialog(result, this, GOOGLE_PLAY_SERVICE_UPDATE_CODE).show();

    result is the result of the isGooglePlayServicesAvailable method

    Here are the docs for GooglePlayServicesUtil: http://developer.android.com/reference/com/google/android/gms/common/GooglePlayServicesUtil.html.

    Here is where they talking about “ensuring” the user has it installed: https://developer.android.com/google/play-services/setup.html#ensure

    This is taken from the Official Iosched 2014 source code here:

    public class PlayServicesUtils {
        public static boolean checkGooglePlaySevices(final Activity activity) {
            final int googlePlayServicesCheck = GooglePlayServicesUtil.isGooglePlayServicesAvailable(activity);
            switch (googlePlayServicesCheck) {
                case ConnectionResult.SUCCESS:
                    return true;
                case ConnectionResult.SERVICE_DISABLED:
                case ConnectionResult.SERVICE_INVALID:
                case ConnectionResult.SERVICE_MISSING:
                case ConnectionResult.SERVICE_VERSION_UPDATE_REQUIRED:
                    Dialog dialog = GooglePlayServicesUtil.getErrorDialog(googlePlayServicesCheck, activity, 0);
                    dialog.setOnCancelListener(new DialogInterface.OnCancelListener() {
                        public void onCancel(DialogInterface dialogInterface) {
            return false;

    Here is how to use it in an Activity: https://github.com/google/iosched/blob/cf1f30b4c752f275518384a9b71404ee501fc473/android/src/main/java/com/google/samples/apps/iosched/ui/BaseActivity.java

    protected void onResume() {
        // Verifies the proper version of Google Play Services exists on the device.

    Does this mean that there is a new version of google play services in the play store?

    From the site latest update was on December 2014

    Does this mean that the app needs a newer version than the one that is currently installed in the device?

    You can check if the device has the higher version ofGoogle Play Service than the one on your app like so:

        int status = GooglePlayServicesUtil.isGooglePlayServicesAvailable( getApplicationContext() );
    if(status == ConnectionResult.SUCCESS) {
    }else if(status == ConnectionResult.SERVICE_VERSION_UPDATE_REQUIRED){
       Toast.makeText(context,"please udpate your google play service",Toast.LENGTH_SHORT).show

    Note that all of the current answers reference GooglePlayServicesUtil which is now deprecated. See GooglePlayServicesUtil vs GoogleApiAvailability for details on how to perform the Google Play Services version compatibility check.

    Documentation was updated, now it is clear:

    Verifies that Google Play services is installed and enabled on this
    device, and that the version installed on this device is no older than
    the one required by this client

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.