How to download old Google Play services?

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

+41
java android linux google-maps gradle
Jan 07
source share
4 answers

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

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

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

For the current version (as of November 10, 2014), which provides you with a library for google-play-services_lib at:

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

Older versions are in the same place on google servers (although they may disappear at any time), so if you are ready to move the currently installed library to the side and manually unzip the old zip, you can install the old version, I found the following:

The same technique will allow you to test old versions of Google Maps (Google Play Services), not updated earlier, in older versions of the emulator. I did not test all of these versions against the emulator, but I successfully tested Google Maps in the emulator for AVD based on the Google API (API 19).

Google makes a random attempt to update the emulator. The following is a problem that discusses version incompatibility issues between the client library and the emulator and various attempts by Google to fix them: https://code.google.com/p/android/issues/detail?id=57880 p>

[UPDATE:]

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

go to:

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

where you will find directories containing older versions in AAR format, simply rename to .zip to extract.

+86
Nov 10 '14 at 6:51
source share

The accepted answer is too big a problem. Google actually distributes old versions in the SDK manager.
In the "Advanced" section there is a "Google Repository."
In the repository, GPS libraries are reverting to version 3.1.36.
They are in AAR format, which is just a zip build project.
Change the name to .zip, unzip it, inside - class.jar, which is the bank of all gps classes.
If you don't need any resources, you can add the jar file to your classpath. Done.

 ls -l /Applications/Programming/adt-bundle-mac-x86_64-20140702/sdk/extras/google/m2repository/com/google/android/gms/play-services/ total 24 drwxr-xr-x+ 8 Norrin staff 272 Jan 13 01:08 3.1.36 drwxr-xr-x+ 8 Norrin staff 272 Jan 13 01:08 3.1.59 drwxr-xr-x+ 8 Norrin staff 272 Jan 13 01:08 3.2.25 drwxr-xr-x+ 8 Norrin staff 272 Jan 13 01:08 3.2.65 drwxr-xr-x+ 11 Norrin staff 374 Feb 10 20:09 4.0.30 drwxr-xr-x+ 8 Norrin staff 272 Jan 13 01:08 4.1.32 drwxr-xr-x+ 8 Norrin staff 272 Jan 13 01:08 4.2.42 drwxr-xr-x+ 8 Norrin staff 272 Jan 13 01:08 4.3.23 drwxr-xr-x+ 8 Norrin staff 272 Jan 13 01:08 4.4.52 drwxr-xr-x+ 8 Norrin staff 272 Jan 13 01:08 5.0.89 drwxr-xr-x+ 8 Norrin staff 272 Jan 13 01:08 6.1.11 drwxr-xr-x+ 8 Norrin staff 272 Jan 13 01:08 6.1.71 drwxr-xr-x+ 8 Norrin staff 272 Feb 4 13:43 6.5.87 -rw-r--r--+ 1 Norrin staff 703 Jan 13 01:08 maven-metadata.xml -rw-r--r--+ 1 Norrin staff 32 Jan 13 01:08 maven-metadata.xml.md5 -rw-r--r--+ 1 Norrin staff 40 Jan 13 01:08 maven-metadata.xml.sha1 
+14
Feb 11 '15 at 17:12
source share

you can download google play services for froyo in the SDK Manager , which works with SDK 8 and above, but AFAIK is not possible to get a specific version. Current Google Play service runs at 10 or higher

+1
Jan 07 '14 at 21:45
source share

One of the requirements is to install google-play-services_lib in the project with a version below / equal to the emulator level.

google-play-services_lib has nothing to do with emulator versions.

The question is, how do I download an older version of google-play-services_lib than those downloaded by the Android sdk manager?

AFAIK, there is no way to do this. In addition, as indicated, this is optional.

Then, if your device was broken or something that you would not have the opportunity to check your program

That doesn't make any sense. google-play-services_lib is a library. This is not Google Play Services, but a client library for using Google Play services.

But then I need to use the support library, which I would like to avoid

As already noted, the Android Support Package is not tied to the Play Services SDK. Parts of the Play Services SDK may use the Android support package (for example, SupportMapFragment ), but the Play Services SDK does not require the Android support package.

+1
Jan 07 '14 at 10:15
source share



All Articles