Google Play Services Out of Date. Requires 3159100 But Found 3158130

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

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 sba...@google.com: 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: sba...@google.com

Comment #18 on issue 57880 by sba...@google.com: 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.

android@googlecode.com via codesite.bounces.google.com Oct 21

to me Updates:
Status: Released

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

Google Play services out of date. Requires 12800000 but found 8703448

I solved the error by updating the Google play services version using this code,

            //On button click of the google signIn 

googleSignIn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent signInIntent = mGoogleSignInClient.getSignInIntent();
startActivityForResult(signInIntent,GOOGLE_SIGNIN_ID);
}

//onActivity Result code.
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent
data) {
super.onActivityResult(requestCode, resultCode, data);

if (requestCode == GOOGLE_SIGNIN_ID){
Task<GoogleSignInAccount> googleSignInAccountTask = GoogleSignIn.getSignedInAccountFromIntent(data);
try {

GoogleSignInAccount googleSignInAccount = googleSignInAccountTask.getResult(ApiException.class);
fireBaseAuthenticationWithGoogle(googleSignInAccount);

}catch (ApiException e){

//if user doesn't have updated google play services version

if (e.getStatusCode() == 12500){

try{
// show your own AlertDialog for example:
AlertDialog.Builder builder = new AlertDialog.Builder(this);
// set the message
builder.setMessage("This app uses google play services for signing in")
.setTitle("Do you want to update?");

builder.setPositiveButton("Ok", (dialog, id) -> {

//final String appPackageName = "com.google.android.gms";
final String appPackageName = "com.google.android.gms&hl=en_IN";
try {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + appPackageName)));
}catch (android.content.ActivityNotFoundException anfe) {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/details?id=" + appPackageName)));
}
});
builder.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
// User cancelled the dialog
}
});
AlertDialog dialog = builder.create();
dialog.show();
}catch (Exception err){
err.printStackTrace();
}

}
}
}

put this where you got the exception. I hope it helps @matdev.

Google Play services out of date. Requires 10084000 but found 8118436

I figured out this issue. For those having the same problem, you need to download the correct APK. Go here to find it: http://www.apkmirror.com/apk/google-inc/google-play-services/

Flutter: Google Play services out of date

To run applications that require Play Services, you need to have an emulator with Google Play on board.

When creating a new emulator (Tools -> AVD Manager -> Create new virtual device... in Android Studio), there are only a few that support Google Play. The AVD Manager indicates which devices qualify for Android versions with Play Store preinstalled (highlighted in yellow):

Sample Image

After selecting a device that supports the Play Store, the system images will target a Google Play version:

Sample Image

Now, your emulator will provide all required features.

Android Places API: Google Play Services Out of Date on Emulator

I had the same issue, and had to move down to API 21 emulator image with google apps. That one is more up to date, and works.

Google Play services out of date. Requires 4242000 but found 4132534

Please follow these useful steps :

  1. use this google-play-services_lib as a library project in your project.
  2. Try to run on the device.
  3. update your existing any google-play app on your device.

Google Play Service out of date error

I think there is an open issue about the error that you receive "Google Play Services out of date on API 23" Also, this kind of issue came out during 2013 when you update your SDK to 18. Just check the link of this issue to know more about it.

What can I suggest you is update your dependency on the latest version. After you update it, create a new virtual device/emulator when testing the application. Try to use the x86-64 version of API 23.

Google play services out of date on a virtual machine

Install a compatible version of the Google APIs platform. Open the sdk manager and check if you have the updated Google play services.(assuming you use eclipse)

Quoting from the docs.

If you want to test your app on the emulator, expand the directory for Android 4.2.2 (API 17) or a higher version, select Google APIs, and install it. Then create a new AVD with Google APIs as the platform target.

Note: Only Android 4.2.2 and higher versions of the Google APIs platform include Google Play services.

http://developer.android.com/google/play-services/setup.html

Check the topic under Ensure Devices Have the Google Play services APK.

Make sure you have the latest updates



Related Topics



Leave a reply



Submit