Eclipse/Android:无法安装 Google API 目标

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7892220/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 17:13:58  来源:igfitidea点击:

Eclipse/Android: can't install Google APIs targets

androideclipseandroid-emulator

提问by Hoff

To use a MapView in my android application, I need to to run it in a "Google APIs (Google Inc.)" target. However, I can't figure out how to download one.

要在我的 android 应用程序中使用 MapView,我需要在“Google APIs (Google Inc.)” target 中运行它。但是,我不知道如何下载一个。

In Eclipse, Android SDK and AVD Manager -> Third party add-ons -> Google Inc. -> No packages found

在 Eclipse 中,Android SDK 和 AVD Manager -> 第三方附加组件 -> Google Inc. -> 未找到软件包

Although I can see that they are a bunch of packages available when looking at the url

虽然我可以在查看url时看到它们是一堆可用的包

Same issue as here.

此处相同的问题。

Here help would be appreciated!

这里的帮助将不胜感激!

回答by Hoff

For reference, here's how I solved this:

作为参考,这是我解决这个问题的方法:

  • I updated my ADT
  • That gives me a new a new SDK manager in eclipse under Window. From there, I was able to install the missing API targets!
  • 我更新了我的ADT
  • 这给了我一个新的 Eclipse 窗口下的新 SDK 管理器。从那里,我能够安装缺少的 API 目标!