Android Studio模拟器首先转移到Google地图中的山景城位置

问题描述

我有一个应用程序,可以在其中设置当前位置(使用Google地图)。每次我在Android Studio模拟器中的应用程序内 中打开Goog​​le Maps时,都会将位置设置为Mountain View(纬度= 37.4220186,经度= -122.0839727)。模拟器是具有Android SDK 30的Nexus 5。

enter image description here

如果我将settings中的位置更改为Moscow,则在单击Moscow按钮后,仿真器可以重定位到My location,但有时它不会重定位。然后,在第二次单击后,它可以再次传输到Mountain View(然后再次传输到Moscow,依此类推)。

这是一个令人讨厌的行为。如何强制Android Studio模拟器在Moscow中启动?

enter image description here

如果我自己在仿真器中打开Google Maps,它将在Moscow中设置正确的位置。

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...