Flutter:Google Play服务已过时 [英] Flutter: Google Play services out of date

查看:1854
本文介绍了Flutter:Google Play服务已过时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

W/GooglePlayServicesUtil(8660):Google Play服务已过期.需要13400000但找到了13280022

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

我正在尝试在Nexus S和Pixel Phone模拟器上都通过google_maps_plugin存储库运行示例应用程序,而两者均在Android Pie上运行.

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.

我到目前为止所做的事情

1)我的模拟器中没有此选项 https://stackoverflow.com/a/45312782/9779791

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

2)这个在flutter标签上,但是解决方案是一个依赖项修复 https://stackoverflow.com/a/53982212/9779791

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

3)我不清楚我如何在gradle

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)尝试通过模拟器从此链接下载播放服务,但是由于我没有playstore应用,因此无法将我的帐户与其关联, https://play.google.com/store/apps/details?id = com.google.android.gms

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

此Google帐户尚未与设备关联.在安装应用程序之前,请先在设备上访问Play商店应用程序.

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

推荐答案

要运行需要Play服务的应用程序,您需要在板上安装带有Google Play的模拟器.

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

在创建新的模拟器(在Android Studio中为Tools -> AVD Manager -> Create new virtual device...)时,只有少数几个支持Google Play. AVD Manager指示哪些设备符合预安装 Play Store (以黄色突出显示)的Android版本:

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

选择支持Play商店的设备后,系统映像将定位到 Google Play 版本:

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.

这篇关于Flutter:Google Play服务已过时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆