【问题标题】:Android TV emulator with Google APIs带有 Google API 的 Android TV 模拟器
【发布时间】:2014-12-31 02:21:38
【问题描述】:

我在 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"

【问题讨论】:

  • 你找到解决这个问题的方法了吗?
  • 没有。我仍然有这个问题。事实上,从那时起我就搁置了对 Android TV 的尝试。
  • 您的问题有什么解决方案吗?
  • @Code_Life 我不再细读那个项目,经过几次尝试后也没有跟进解决方案。

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


【解决方案1】:

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

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

【讨论】:

    【解决方案2】:

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

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

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

    【讨论】:

    • 我可以将模拟器与 Google API 一起用于普通的 android 设备。目前的情况是使用“Android TV”模拟器。经过一番研究,我发现 Android TV 模拟器中包含 Google Play 服务。但我收到警告消息“您的某些应用程序所依赖的 Google Play 服务不受您的设备支持”
    • 您需要找到一个包含 Google API 并且与 Android TV 兼容的模拟器。我不确定是否有有效的组合。让这两个工作后你想做什么?
    • 我想测试我在游戏中使用的“Google Play 游戏服务”。问题中给出了详细信息。我还用最近的发现编辑了这个问题。
    • 暂无更新,Android TV 图像似乎仍未启用 Google API。
    • 你有进步吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-03-02
    • 1970-01-01
    相关资源
    最近更新 更多