mirkancal
mirkancal

Reputation: 5345

Flutter: Google Play services out of date

W/GooglePlayServicesUtil( 8660): Google Play services out of date. Requires 13400000 but found 13280022

I'm trying to run example app from google_maps_plugin repo on Nexus S and Pixel Phone emulators which both run on Android Pie.

There are questions, not on the flutter side specifically. I've failed to apply their solutions.

What I've done so far

1) I don't have this option in my emulator https://stackoverflow.com/a/45312782/9779791

2) this one is on the flutter tag but solution was a dependency fix https://stackoverflow.com/a/53982212/9779791

3) Not clear to me how to downgrade google play services in gradle Google Play services out of date. Requires 10298000 but found 10084470

4) tried to download play services from this link with emulator, but since I don't have playstore app, I can't associate my account with it, https://play.google.com/store/apps/details?id=com.google.android.gms

This Google account is not yet associated with a device. Please access the Play Store app on your device before installing apps.

Upvotes: 10

Views: 13730

Answers (2)

Mannie
Mannie

Reputation: 1664

You need to update the google play services on the emulator. Firstly, make sure that your emulator is using a google play image then;

  1. Click the ... icon at the side of the emulator
  2. Goto Play Services -> Update
  3. You may need to sign-into the google play using valid google credentials
  4. Click on the update button in the google play to update the google services apk(s)

enter image description here

Upvotes: 7

creativecreatorormaybenot
creativecreatorormaybenot

Reputation: 126694

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):

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

Now, your emulator will provide all required features.

Upvotes: 13

Related Questions