Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Play services out of date. Requires 3159100 but found 3158130

In SDK tools Google Play services has updated to revision 9 (version 3159100) but the Google Api's (API 17) is still revision 3 and therefore only includes Google Play Services version 3158130

How to solve this issue??

LogCat message Google Play services out of date. Requires 3159100 but found 3158130

Thanks in Advance

like image 906
Devendar Avatar asked Jul 25 '13 12:07

Devendar


People also ask

How do I install older version of Google Play Services?

If you need a rollback of Google Play Services, check out the app's version history on Uptodown. It includes all the file versions available to download off Uptodown for that app. Download rollbacks of Google Play Services for Android.

Can I clear cache on Google Play Services?

2 Search for Apps from the list and Tab on it. 3 Search for Google Play services and tab on it. 5 Then click on "Clear cache".


3 Answers

This is an issue with Google that arises when you update to SDK 18 (Jelly Bean 4.3) (which has now been resolved via update 21st October 2013 - see below) by Google :

https://code.google.com/p/android/issues/detail?id=57880#makechanges

It impacts Google API emulators for both 4.2.2 and 4.3 if you are running Google Play Services.

I'm not interested in a workaround or an "unofficial" solution. This is an error caused by Google and so I'm going to wait for them to fix it. When they do, I'll turn this response into a proper "answer".

This received 26th July 2013:

Comment #13 on issue 57880 by [email protected]: google play services updated but AVD not http://code.google.com/p/android/issues/detail?id=57880

We're working on this. I don't have an ETA yet other than the maddeningly vague "soon".

This received 1st August 2013:

Updates: Status: Assigned Owner: [email protected]

Comment #18 on issue 57880 by [email protected]: google play services updated but AVD not http://code.google.com/p/android/issues/detail?id=57880

The Play Services team knows about this issue and is working on it with a high priority. The fix for this will go in the same emulator image in the same timeframe. Sorry I'm being vague about when it'll go out; I don't want to tell you something and then have us miss it. I'll update this bug when I know more.

This is the final update on this issue (received October 21st 2013). This fix works fine for me on 4.3 - I haven't tried it on other flavours of Jelly Bean.

[email protected] via codesite.bounces.google.com Oct 21

to me Updates: Status: Released

Comment #45 on issue 57880 by [email protected]: google play services updated but AVD not http://code.google.com/p/android/issues/detail?id=57880

like image 102
IanB Avatar answered Oct 21 '22 09:10

IanB


You may want to check at runtime whether the GooglePlayServices are up-to-date on the device or not. If not, simply show the appropriate errorDialog that will prompt the user to update it.

private boolean isGooglePlayServicesAvailable() {
        GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.getInstance();
        Integer resultCode = googleApiAvailability.isGooglePlayServicesAvailable(mContext);
        if (resultCode != ConnectionResult.SUCCESS) {
            Dialog dialog = googleApiAvailability.getErrorDialog(this, resultCode, 0);
            if (dialog != null) {
                dialog.show();
            }
            return false;
        }
        return true;
    }

Check the doc for further information : http://developer.android.com/google/play-services/setup.html

like image 34
Nerkatel Avatar answered Oct 21 '22 08:10

Nerkatel


I myself ran into this problem and found the solution here. For me it worked on target API Level 16. So I will recommend you that you create a new emulator with target API level 16 (Android version 4.1.2, non-google API) and install these files on it. This will make it google-api emulator.I am posting the actual answer for reference

This fix was broken with the latest sdk tools resulting in an error:

"Google Play services out of date. Requires 3159100 but .."
Here are the updated gms and vending files. Same instructions as before: Create a new emulator with any cpu/abi, a non google-api target (versions 10-17 work) and gpu emulation on or off, and then install the files:

adb install com.android.vending-20130716.apk 
adb install com.google.android.gms-20130716.apk 

If you are upgrading an existing emulator then you might need to uninstall previous versions by:

adb uninstall com.android.vending
adb uninstall com.google.android.gms
like image 27
Chetna Avatar answered Oct 21 '22 09:10

Chetna