How do I install a specific version of google play services on a VM?
The short and sad answer is there’s no official way to do that, as Google does not provide versioned packages for Google Play Services. It’s the same on your own Mac/PC too, at the time when you install or upgrade the Google Play Service package you’ll get the latest version of the package, and you simply can’t go back to an older version using the official tools.
There are hacks like directly downloading the package and uncompressing it (Android tools packages are simple ZIP files which have to be uncompressed into the right directory in
$ANDROID_HOME), see e.g. this stack overflow thread https://stackoverflow.com/a/26838281/974381 - but even these URLs might disappear any time (as noted in the Stack Overflow) questions.
You could probably ZIP up the right package dir from your own Mac/PC and upload it to somewhere, even to bitrise.io directly (using Generic File Storage), AFAIK this should work but there might be breaking changes when the other android tools get an update.
If we can help with anything or if you’d have any questions just let us know!
Thanks Victor, that seems to be what I have found as well.