15

I have an android game in Google Play. Now I'm trying to make it compatible with Android TV. I don't have any of the Android TV hardware. So I'm testing in emulator. I was able to start Android Emulator for Android TV with Android 5.0. My game is using Google Play Games Services. So to test it I need Google APIs in the emulator. But if I try to create an Android TV emulator with Google APIs I see no System images for Android TV with Google APIs.

Is it something that I am missing on my side or the Emulator doesn't support "Android TV with Google API"

Any info in this regard will be helpful.

Edit
I figured out the Android TV system images are having Google APIs by default. But when I run my app (that uses Google Play Services) on the emulator I get the following message in an Alert Dialog

google play services which some of your applications rely on is not supported by your device

Also I saw the following somewhere in the logs.

google play services not available due to error 9


google play services is invalid. cannot recover"
Sreekanth
  • 2,887
  • 2
  • 16
  • 30

2 Answers2

7

Android TV Emulator with Play Services and Play Store is available on the latest AndroidTV Q image. It was recently announced:

Android TV Emulator with Play Store support: Test your TV projects seamlessly. The Android TV emulator now supports Google Play, so you can test subscriptions faster through the emulator instead of testing on real devices.

Oleksandr
  • 6,226
  • 1
  • 46
  • 54
3

There is another answer related to accessing Google services and APIs, here:

Google Play Services in emulator, implementing Google Plus login button etc

From the Android TV documentation, it seems that the emulators and TV add ons are not going to be available for every API version which means using Google APIs with the Android TV emulator is currently unsupported.

Community
  • 1
  • 1
class
  • 8,621
  • 29
  • 30
  • 1
    I could use emulator with Google APIs for normal android devices. Current situation is with "Android TV" emulators. After some research I found the Android TV emulators are having Google Play Services in it. But I'm getting alert message "google play services which some of your applications rely on is not supported by your device" – Sreekanth Nov 06 '14 at 09:03
  • You need to find an emulator that includes Google APIs and that is compatible with Android TV. I'm not sure there is a working combination. What are you trying to do after you get the two working? – class Nov 11 '14 at 16:09
  • I want to test the "Google Play Games Services" I am using in the game. Details are given in the question. Also I've edited the question with recent findings. – Sreekanth Nov 12 '14 at 12:30
  • Any progress with this? The google play services have stopped error is really annoying in the android tv emulator? – Sealer_05 Feb 07 '16 at 05:17
  • 1
    No update yet, still looks like the Android TV images do not have Google APIs enabled. – class Feb 08 '16 at 16:59
  • 1
    did you make any progress? – LunaVulpo Oct 31 '16 at 11:26