Android TV模拟器与Google API

15

我在Google Play上有一个安卓游戏。 现在我正在尝试让它与Android TV兼容。 我没有任何Android TV硬件设备。所以我正在模拟器中测试。我能够启动Android 5.0的Android TV模拟器。我的游戏正在使用Google Play Games服务。所以为了测试它,我需要在模拟器中安装Google APIs。但是,如果我尝试创建带有Google APIs的Android TV模拟器,我会发现没有适用于带有Google APIs的Android TV的系统映像。

这是我错过了什么还是模拟器不支持“带有Google API的Android TV”?

对此的任何信息都将是有益的。

编辑
我弄清楚了Android TV系统映像默认具有Google APIs。 但是当我在模拟器上运行我的应用程序(使用Google Play服务)时,我会在警报对话框中得到以下消息:

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

我在日志中的某个地方看到了下面的内容。

google play services not available due to error 9


google play services is invalid. cannot recover"

你找到这个问题的解决方案了吗? - jvlach
不,我仍然有这个问题。事实上,自那时起我已经暂停了我的 Android TV 尝试。 - Sreekanth
你的问题有什么解决方案吗? - Code_Life
@Code_Life 我不再追求那个项目了,在尝试了一些方法后也没有跟进解决方案。 - Sreekanth
2个回答

7
最新的AndroidTV Q镜像中提供了具有Play服务和Play商店功能的Android TV模拟器。它最近被宣布:

具有Play商店支持的Android TV模拟器:无缝测试您的电视项目。 Android TV模拟器现在支持Google Play,因此您可以通过模拟器更快地测试订阅,而不是在实际设备上进行测试。


3

1
我可以在普通的Android设备上使用带有Google API的模拟器。目前的情况是使用“Android TV”模拟器。经过一些研究,我发现Android TV模拟器中已经包含了Google Play服务。但是我收到了警告消息:“您的某些应用程序依赖的Google Play服务不受您的设备支持”。 - Sreekanth
你需要找到一个包含Google API并且与Android TV兼容的模拟器。我不确定是否有可行的组合。在你让这两个工作之后,你想要做什么? - class
我想测试我在游戏中使用的“Google Play Games Services”。问题中提供了详细信息。此外,我已经根据最近的发现编辑了问题。 - Sreekanth
这方面有任何进展吗?Android TV模拟器中出现的Google Play服务停止运行错误确实很让人头疼。 - Sealer_05
1
目前还没有更新,看起来 Android TV 的镜像仍未启用 Google APIs。 - class
1
你有取得任何进展吗? - LunaVulpo

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接