W/GooglePlayServicesUtil( 8660): Google Play services out of date. Requires 13400000 but found 13280022</blockquote>
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.
<strong>What I've done so far</strong>
1) I don't have this option in my emulator <a href="https://stackoverflow.com/a/45312782/9779791" rel="nofollow">https://stackoverflow.com/a/45312782/9779791</a>
2) this one is on the flutter tag but solution was a dependency fix <a href="https://stackoverflow.com/a/53982212/9779791" rel="nofollow">https://stackoverflow.com/a/53982212/9779791</a>
3) Not clear to me how to downgrade google play services in gradle <a href="https://stackoverflow.com/questions/42610703/google-play-services-out-of-date-requires-10298000-but-found-10084470" rel="nofollow">Google Play services out of date. Requires 10298000 but found 10084470</a>
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, <a href="https://play.google.com/store/apps/details?id=com.google.android.gms" rel="nofollow">https://play.google.com/store/apps/details?id=com.google.android.gms</a><blockquote>
This Google account is not yet associated with a device. Please access the Play Store app on your device before installing apps.</blockquote> Answer1:
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 <strong><em>Play Store</em></strong> preinstalled (highlighted in yellow):
<img alt="" class="b-lazy" data-src="https://i.stack.imgur.com/SppZf.png" data-original="https://i.stack.imgur.com/SppZf.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />
After selecting a device that supports the Play Store, the system images will target a <em>Google Play</em> version:
<img alt="" class="b-lazy" data-src="https://i.stack.imgur.com/RluMa.png" data-original="https://i.stack.imgur.com/RluMa.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />
Now, your emulator will provide all required features.Answer2:
You need to update the google play services on the emulator. Firstly, make sure that your emulator is using a google play image then;<ol><li>Click the ... icon at the side of the emulator</li> <li>Goto Play Services -> Update</li> <li>You may need to sign-into the google play using valid google credentials</li> <li>Click on the update button in the google play to update the google services apk(s)</li> </ol>
<a href="https://i.stack.imgur.com/f2JzA.png" rel="nofollow"><img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/f2JzA.png" data-original="https://i.stack.imgur.com/f2JzA.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /></a>