Android 模拟器设置 gps 地理定位

Android emulator set gps geolocation

有没有其他方法可以为模拟器设置gps坐标?它不适用于以下方法: 1). geo fix longitude, latitude [altitude] 如果它在终端中不起作用。

2)

3)

在模拟器工具栏中应该有可以单击的省略号。单击它们后,window 中的经度和纬度是可编辑的,并将更改模拟器感知的位置。

annotated image of where to find this button

image showing where to edit long and lat

某些手机可能需要额外的步骤,Android 开发人员很可能已经完成了。启用开发者模式(在版本号上点击 7 次以上)并打开模拟位置