我正在使用 Google Places SDk,我知道该 SDK 已弃用。我正在使用自动完成功能,但不断收到错误,指出存在网络错误且分辨率为空。这是因为弃用吗?如果我的 API key 位于我的 list 中,或者我可以将其存储在我想要的任何地方(忽略安全目的),会有什么不同吗?
最佳答案
您不能再使用已弃用的 Places SDK。您需要migrate如果您想继续使用 Places 服务,请使用新的 Android 版 Places SDK;此时您无法让已弃用的 SDK 正常工作。
查看What are the consequences of not migrating to the new released google places sdk
请注意,您还需要迁移到 AndroidX如果您还没有这样做的话。
希望这有帮助!
关于java - 我的谷歌地方 SDK 在尝试了多种选项后似乎不起作用。可能是什么问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60008981/