【发布时间】:2021-01-11 20:56:46
【问题描述】:
我正在尝试使用FusedLocationProviderClient.getCurrentLocation()。
根据文档here,它应该是可用的。
但在 Android Studio 中,我收到了错误
无法解析“FusedLocationProviderClient”中的方法“getCurrentLocation”
我知道推荐的方法是实现requestLocationUpdates(),但这不是我想要的。
【问题讨论】:
标签: android android-fusedlocation fusedlocationproviderclient