Flutter:Google Play服务已过时

mir*_*cal 3 android android-emulator google-play-services

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

我正在尝试在Nexus S和Pixel Phone模拟器上的google_maps_plugin存储库中运行示例应用程序,它们均在Android Pie上运行。

有问题,而不是颤抖的一面。我未能应用他们的解决方案。

到目前为止我做了什么

1)我的模拟器中没有此选项 /sf/answers/3171894771/

2)这是在flutter标签上,但是解决方案是一个依赖项修复 /sf/answers/3778754871/

3)我不清楚如何在过时的Gradle Google Play服务中将Google Play服务降级。需要10298000但找到10084470

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

此Google帐户尚未与设备关联。请先在设备上访问Play商店应用,然后再安装应用。

cre*_*not 9

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

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

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

现在,您的模拟器将提供所有必需的功能。


Man*_*nie 7

您需要更新模拟器上的 google play 服务。首先,确保您的模拟器使用的是 google play 镜像;

  1. 单击模拟器侧面的 ... 图标
  2. 转到播放服务 -> 更新
  3. 您可能需要使用有效的 Google 凭据登录 Google Play
  4. 单击 google play 中的更新按钮以更新 google services apk(s)

在此输入图像描述