15

我在 Google Play 中有一个安卓游戏。现在我正在尝试使其与 Android TV 兼容。我没有任何 Android TV 硬件。所以我在模拟器中测试。我能够使用 Android 5.0 为 Android TV 启动 Android Emulator。我的游戏正在使用 Google Play 游戏服务。所以为了测试它,我需要模拟器中的谷歌 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"
4

2 回答 2

7

具有 Play 服务和 Play 商店的 Android TV Emulator 可在最新的 AndroidTV Q 映像上使用。最近宣布

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

于 2020-09-28T08:02:20.310 回答
3

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

模拟器中的 Google Play 服务,实现 Google Plus 登录按钮等

从 Android TV 文档来看,模拟器和 TV 插件似乎不适用于每个 API 版本,这意味着目前不支持将 Google API 与 Android TV 模拟器一起使用。

于 2014-11-06T00:05:01.260 回答