Android 谷歌地图插件不可用?

标签 android eclipse

我正在尝试引用本教程在 Android 上显示谷歌地图 http://developer.android.com/resources/tutorials/views/hello-mapview.html 当我去谷歌网站下载插件时,它说插件不可用,请指导我应该怎么做才能实现这一目标?

最佳答案

如果您更仔细地阅读附加组件页面,您会看到:

The Google APIs add-on is not yet available for download. For your convenience, the Google APIs add-on is available preinstalled in the Android SDK.

因此,如果您已经安装了 Android SDK,那么您应该已经拥有了 Google API 插件。

要检查,请在命令提示符处运行不带任何选项的 android 命令以打开 Android SDK 和 AVD 管理器 GUI。检查已安装的软件包以确认已列出 Google API:

alt text

如果未列出,请使用可用包选项进行安装。

如果您使用的是 Eclipse,您还需要 edit the Properties of your Project and select the correct Build Target :

alt text

关于Android 谷歌地图插件不可用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2086137/

相关文章:

android - 我第二次按下录制按钮时,我的应用程序崩溃了

java - 无法连接服务

eclipse - 如何更改 Eclipse 中所有文本编辑器的字体大小?

java - 以编程方式调用 Eclipse 导出到 xml

java - Eclipse 错误消息 ArrayList()

Eclipse 4.6.1 JGit/EGit 升级后验证时间更长

android - 在正方形上映射纹理 (Android)

Android M 权限模型

android - Oauth 2.0 刷新 token 过期

java - Tomcat:严重:加载 WebappClassLoader 时出错