Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 269
mirkancal Avatar asked Mar 05 '19 14:03

mirkancal


People also ask

How do I update Google Play services on flutter?

Goto Play Services -> Update. You may need to sign-into the google play using valid google credentials. Click on the update button in the google play to update the google services apk(s)

Does flutter have an emulator?

You can run your flutter application on an android emulator using three simple steps: Installation.


1 Answers

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.

like image 174
creativecreatorormaybenot Avatar answered Sep 20 '22 16:09

creativecreatorormaybenot