android - 在 Android Studio 中找不到 GeoPoint 类?

标签 android android-studio gps

我们如何在 android Studio 中使用 Geopoint?我在我的 Eclipse 项目中使用 Geopoint 类,现在我正在尝试将其转换为 Android Studio 项目,我几乎已经转换了它,但是 'Geopoint' 没有解析类型.

最佳答案

I am useing google-play-services_lib but getting Geopoint' are't resolved a type.

Google Play 服务不使用

GeoPoint。它不存在于 Maps V2 API 或 Android SDK 中。

在 Maps V1 SDK 中一个 GeoPoint 类。该 SDK 已在 18 个月前弃用,您无法再为其获取 API key 。

确保您尝试使用的代码适用于 Maps V2。如果您尝试将 GeoPoint 用于独立于任一 map API 的内容,则需要编写您自己的 GeoPoint 类。

关于android - 在 Android Studio 中找不到 GeoPoint 类?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29894186/

相关文章:

android - 如何使android按钮等宽?

android - Android xml和gradle代码突然更改,并显示自动生成的代码

java - Android后台服务错误: Can't create handler inside thread that has not called

android - 如何在没有 'onLocationChange' 方法的情况下知道 GPS 位置

android - 使 Android "uses-permission"可选

android - 如何自定义微调框?

java - LibGdx RayCast box2d 调试(屏幕上可见)

android - 为什么 Android 测试运行程序报告 "Empty test suite"?

android - 如何在android中使用进度条填充图像

Android 运行时权限 - 用户撤销权限时应用程序崩溃。如何处理?