如何手动安装 google api 3 到 7?

发布于 2024-12-11 06:37:47 字数 214 浏览 0 评论 0原文

我已经安装了 google api 9,但我需要以前版本的 google api。我尝试使用“Windows->Android SDK 和 AVD 管理器->可用软件包”来安装它们,但它没有显示更新。我如何安装它们?请帮助我,我需要它们,因为我正在开发一个基于 GPS 的应用程序,需要 google API。由于模拟器在基于 google api 9 发送地理坐标时崩溃,我需要旧版本。请帮忙!!!!

I have google api's 9 already installed but I need previous version of google api's.I tried to install them using "Windows->Android SDK and AVD manager -> Available packages" but it is showing no updates.How can I install them ? Please help me I need them because I'm developing a GPS based application which needs google API's.Since the emulator crashes on sending geo coordinates based on google api 9 I need older versions. Please help !!!!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

天涯离梦残月幽梦 2024-12-18 06:37:47

您应该能够通过直接调用tools/android来安装旧版本。例如,在我的 Linux 开发机器上,我运行:

phil@Ubuntu64-5810T:/opt/android-sdk-linux_x86$ tools/android list sdk
<snip>
Packages available for installation or update: 20
   1- Documentation for Android SDK, API 14, revision 1
   2- SDK Platform Android 4.0, API 14, revision 1
   3- SDK Platform Android 3.2, API 13, revision 1
   4- SDK Platform Android 3.1, API 12, revision 3
   5- SDK Platform Android 3.0, API 11, revision 2
   6- SDK Platform Android 2.3.3, API 10, revision 2
   7- SDK Platform Android 2.2, API 8, revision 3
   8- SDK Platform Android 2.1, API 7, revision 3
   9- Samples for SDK API 14, revision 1
  10- Samples for SDK API 13, revision 1
  11- Samples for SDK API 12, revision 1
  12- Google APIs by Google Inc., Android API 14, revision 1
  13- Google APIs by Google Inc., Android API 13, revision 1
  14- Google APIs by Google Inc., Android API 12, revision 1
  15- Google TV by Google Inc., Android API 12, revision 2
  16- Google APIs by Google Inc., Android API 10, revision 2
  17- Android Support package, revision 4
  18- Google Admob Ads Sdk package, revision 3
  19- Google Market Billing package, revision 1
  20- Google Webdriver package, revision 1

You can install different SDKs via

phil@Ubuntu64-5810T:/opt/android-sdk-linux_x86$tools/android sdk

然后这将弹出一个 GUI,类似于 this

只需选中“过时”框,所有旧的 API 就会显示出来。

You should be able to install older versions by invoking tools/android directly. For example, on my Linux dev machine, I run:

phil@Ubuntu64-5810T:/opt/android-sdk-linux_x86$ tools/android list sdk
<snip>
Packages available for installation or update: 20
   1- Documentation for Android SDK, API 14, revision 1
   2- SDK Platform Android 4.0, API 14, revision 1
   3- SDK Platform Android 3.2, API 13, revision 1
   4- SDK Platform Android 3.1, API 12, revision 3
   5- SDK Platform Android 3.0, API 11, revision 2
   6- SDK Platform Android 2.3.3, API 10, revision 2
   7- SDK Platform Android 2.2, API 8, revision 3
   8- SDK Platform Android 2.1, API 7, revision 3
   9- Samples for SDK API 14, revision 1
  10- Samples for SDK API 13, revision 1
  11- Samples for SDK API 12, revision 1
  12- Google APIs by Google Inc., Android API 14, revision 1
  13- Google APIs by Google Inc., Android API 13, revision 1
  14- Google APIs by Google Inc., Android API 12, revision 1
  15- Google TV by Google Inc., Android API 12, revision 2
  16- Google APIs by Google Inc., Android API 10, revision 2
  17- Android Support package, revision 4
  18- Google Admob Ads Sdk package, revision 3
  19- Google Market Billing package, revision 1
  20- Google Webdriver package, revision 1

You can install various SDKs via

phil@Ubuntu64-5810T:/opt/android-sdk-linux_x86$ tools/android sdk

This will then pop up a GUI, similar tothis

Just check the 'obsolete' box and all the older APIs should show up.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文