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