12

I'm working on a game which integrates Google Play Games Services. It works fine on a physical device. But when I run the app on an emulator it says "Install Play Games Services" as shown below.

I'm using x86_64 Android 6.0 (with Google APIs) image for emulator. I've tried other images too but all had same result. The emulator has Google Play Services 8.4.89.

I've tried updating the emulator images to the latest. But it didn't help.

One thing that worked partially was sideloading the Play Games apk to the emulator. It worked on some emulators and it was hard to find the apk corresponding to each emulator configurations. Also I feel this is not the genuine/official way to resolve this as it's a hacky workaround.

So I'm looking for a solution that is officially recommended to resolve this problem.

Please don't suggest to click the INSTALL button as it will work only on a real device.

Sreekanth
  • 2,887
  • 2
  • 16
  • 30
  • It's not with play services. Google Play games is a separate app which should be in your emulator for that – Vivek Mishra Jan 07 '16 at 10:57
  • Yes. I get that point. But do you have any insight on why the app is not present in my emulator. Do I have to do anything extra to get it? – Sreekanth Jan 07 '16 at 10:59
  • From what I know, Google apps usually aren't loaded in the android images on the emulator. An alternative if you still want to install it is to sideload the google apps you'll be needing through `adb` shell. – adjuremods Jan 08 '16 at 03:06
  • This is a very strange problem. I test my games with Bluestacks App Player which worked fine until I've upgraded Google Play Services to 8.x. Now I get a cancel callback whenever I want to connect. I've installed the latest Google Play Services apk but no luck. I can now only test it with a real physical device on which it works like a charm... – sjkm Jan 31 '16 at 15:24
  • @Sreekanth Have you had any luck in the previous weeks? Thank you. – sjkm Jan 31 '16 at 15:28
  • @sjkm unfortunately NO. I haven't found any solution yet – Sreekanth Jan 31 '16 at 15:59
  • @Sreekanth Thank you for getting back to me. I'm quite sure that it depends on the Play Services version... Not really cool to deploy to a phone everytime to test during development... – sjkm Jan 31 '16 at 16:23
  • 1
    I switched to GenyMotion Emulator. Play Games is running fine: http://stackoverflow.com/a/20137324/4565322 – skymedium Feb 05 '16 at 15:17

3 Answers3

1

I had same problem when I used Games.API.

Install Google Play APK Expansion Library then Play Games Services will be in emulator.

Install Google Play APK Expansion Library in SDK Tools

Quyet Nguyen
  • 136
  • 3
1

Google now officially adds Play Services to Nexus5, 5x, Pixel, Pixel 2 images. When creating a virtual device consider there is a Play Store icon in the Play Store column or not.

Sattar Hummatli
  • 1,360
  • 1
  • 15
  • 26
1

Some Emulator images are marked (Google API), and some are marked (Google Play). In my limited experience the (Google API) do not contain the play store, so do not permit updating the play game services or install from scratch if its not there. The (Google Play) has the play store, so I can get rolling by letting it upgrade itself and install Play Games. I tested this on x86, and API 26,27,28.

According to Google's documentation they recommend running on a physical device, so I guess some hassle might be expected, though it did seem to work for me.

With thanks to this medium post by Daishi Kato, its possible to download the GoogleApps (opengapps) and install it manually.

arberg
  • 4,148
  • 4
  • 31
  • 39