使用Google API的Android TV模拟器

时间:2014-11-04 08:53:44

标签: android android-emulator google-play-services google-play-games android-tv

我在Google Play上有一款安卓游戏。 现在我正在努力使其与Android TV兼容。 我没有任何Android TV硬件。所以我在模拟器中测试。我能够使用Android 5.0为Android TV启动Android Emulator。我的游戏正在使用Google Play游戏服务。因此,要测试它,我需要在模拟器中使用Google API。但是,如果我尝试使用Google API创建Android TV模拟器,我看不到使用Google API的Android TV的系统图像。

这是我缺少的东西,还是模拟器不支持“使用Google API的Android TV”

这方面的任何信息都会有所帮助。

修改
我发现Android TV系统图像默认使用Google API。 但是当我在模拟器上运行我的应用程序(使用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"

2 个答案:

答案 0 :(得分:4)

带有Play服务和Play商店的Android TV模拟器在最新的AndroidTV Q映像上可用。最近是announced

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

答案 1 :(得分:3)

还有另一个与访问Google服务和API相关的答案:

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

从Android TV文档来看,似乎每个API版本都无法使用模拟器和电视附加组件,这意味着目前不支持使用带有Android TV模拟器的Google API。