我正在尝试引用本教程在 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:
如果未列出,请使用可用包选项进行安装。
如果您使用的是 Eclipse,您还需要 edit the Properties of your Project and select the correct Build Target :
关于Android 谷歌地图插件不可用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2086137/