Flutter: won‘t run without google play services, which are not supported by your device 解决办法

使用 Location plugin 获取使用者位置坐标时,出现 won’t run without google play services, which are not supported by your device 这样的错误信息,截图如下:

在这里插入图片描述
vs code DEBUG CONSOLE 输出:

W/GooglePlayServicesUtil( 7873): Google Play Store is missing.
E/GoogleApiAvailability( 7873): Google Play services is invalid. Cannot recover.
D/OpenGLRenderer( 7873): endAllActiveAnimators on 0xe6f8d990 (RippleDrawable) with handle 0xbb224ef0
W/GooglePlayServicesUtil( 7873): Google Play Store is missing.

解决办法是,重新创建一个带有Google Play Store 的模拟器。

如果所示,带有 Play Store 标志的 Pixel 4, Pixel 3a,Pixel 3 都是可以的:
在这里插入图片描述
使用新的模拟器,不再出现这样的错误信息。


https://stackoverflow.com/questions/69700936/flutter-application-wont-run-without-google-play-service

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值