如何下载年长谷歌播放服务? [英] How to download older google play services?

查看:336
本文介绍了如何下载年长谷歌播放服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要去使用Android 谷歌地图V2 Android模拟器/机器人工作室0.4.0 。其中一项要求是把项目谷歌播放services_lib 版本低于/等于模拟器的水平。我的仿真器可与 API LV 17 。现在的问题是,如何下载旧版本的谷歌播放services_lib 比由 Android的SDK管理器中下载

Im going to use android google maps v2 with android emulator/android studio 0.4.0. One of requirements is to put in project google-play-services_lib with version lower/equal to emulator level. My emulator works with api lv 17. The question is, how to download older version of google-play-services_lib than those downloaded by android sdk manager?

推荐答案

我意识到这是一个老问题,但今天我有同样的问题(实际设备不是仿真器),并找到了解决办法。

I realise that this is an old question, but I had the same problem today (for real devices not for the emulator) and have found a solution.

我知道,你可以添加code,以提示用户升级到最新版本(见注释由@弥敦道 - 沃尔特斯),但是,对于复杂的原因,在我的情况,我需要与任何版本的工作用户已经安装的设备上(如果有的话),因此preFER编译/建立与客户端库的较旧版本(谷歌播放services_lib)

I know that you can add code to prompt the user to upgrade to the latest version (see the comment by @nathan-walters) but, for complicated reasons, in my case I need to work with whatever version the user already has installed on their device (if any) and hence prefer to compile/build with an older version of the client library (google-play-services_lib)

所以进一步的研究,我打开了Android SDK中管理器用来查找并安装额外的软件包,包括谷歌播放服务的最新版本的XML。
如果你有兴趣从这里开始: https://dl-ssl.google.com/机器人/库/ addon.xml

So researching further, I unpacked the xml that Android SDK Manager uses to find and install the 'extras' packages including the latest version of Google Play Services.
If you are interested start here: https://dl-ssl.google.com/android/repository/addon.xml

对于目前的版本(截至2014年11月10日),让你的库谷歌播放-services_lib的:

For the current version (as of Nov 10th 2014) that gives you the library for google-play-services_lib at:

https://dl-ssl.google.com/android/repository/google_play_services_6171000_r21.zip

老版本都是在谷歌服务器上的同一位置(虽然他们可能会消失在任何时候),所以如果你是ppared移动当前安装的库放在一边,然后手动解压的旧拉链$ P $,那么你可以安装一个旧版本。我发现了以下内容:

The older versions are in the same location on the google servers (although they could disappear at any time), so if you are prepared to move the current installed library aside and manually unpack an older zip then you can install an old version. I found the following:

  • https://dl-ssl.google.com/android/repository/google_play_services_4132530_r14.zip
  • https://dl-ssl.google.com/android/repository/google_play_services_4242030_r15.zip
  • https://dl-ssl.google.com/android/repository/google_play_services_4323030_r16.zip
  • https://dl-ssl.google.com/android/repository/google_play_services_5077000_r18.zip
  • https://dl-ssl.google.com/android/repository/google_play_services_5089000_r19.zip
  • https://dl-ssl.google.com/android/repository/google_play_services_6171000_r21.zip
  • https://dl-ssl.google.com/android/repository/google_play_services_7095000_r23.zip
  • https://dl-ssl.google.com/android/repository/google_play_services_7571000_r25.zip
  • https://dl-ssl.google.com/android/repository/google_play_services_7895000_r26.zip
  • https://dl-ssl.google.com/android/repository/google_play_services_8115000_r27.zip

同样的技术将允许您测试对非升级旧版本的谷歌地图(谷歌播放服务)硬连线在旧版本的模拟器。我没有测试所有这些版本针对仿真器,但已成功地在仿真器基于谷歌的API(API 19)的AVD测试谷歌地图。

The same technique would allow you to test against the non-upgradable older versions Google Maps (Google Play Services) hardwired in older versions of the emulator. I haven't tested all these versions against the emulator but have successfully tested Google Maps in the emulator for an AVD based on Google APIs (API 19).

谷歌确实使偶尔尝试以使仿真器是最新的。这里有一个问题跟踪线程讨论客户端库和仿真器和谷歌的各种努力来解决他们之间的版本不兼容的问题:的 HTTPS://$c$c.google.com/p/android/issues/detail ID = 57880

Google does make the occasional attempt to bring the emulator up to date. Here is an issue tracker thread discussing version incompatibility issues between the client library and the emulator and google's various attempts to fix them: https://code.google.com/p/android/issues/detail?id=57880

[更新:]

@btrue 看到下面的答案现在有一个好于我的回答的答案

@btrue see answer below now has a much better answer than my answer

<your path to android sdk>/extras/google/m2repository/com/google/android/gms/play-services/

在这里您可以包含旧版本的AAR格式目录 - 只需重命名为.zip提取

where you will find directories containing the old releases in AAR format - just rename to .zip for extraction.

这篇关于如何下载年长谷歌播放服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆