【问题标题】:Android emulator with google play services带有谷歌播放服务的安卓模拟器
【发布时间】:2023-03-14 23:00:01
【问题描述】:

我创建了一个 android 模拟器来测试 google play 服务,使用 google apis 4.2.2 或更高版本,如本文所述 https://developers.google.com/android/guides/setup,但只有谷歌地图服务可用,我正在测试的游戏声称谷歌播放服务。我错过了什么?

【问题讨论】:

    标签: android google-play-services emulation


    【解决方案1】:

    您可以参考google play services in 4.2.2 emulator

    我会建议你使用 Genymotion 而不是使用 android 默认模拟器。它就像虚拟手机一样,你也可以在里面添加 Gapps 以及从 Google Play 下载任何应用程序,和安卓设备一样。

    Genymotion,你可以从这个Genymotion Gapps link下载基于你的虚拟设备版本的谷歌应用程序

    【讨论】:

    • Genymotion 是付费应用程序
    • @César Moltoni :不。您可以使用它的免费版本供个人使用。 genymotion.com/#!/download
    【解决方案2】:

    您必须使用 Target:Google API 运行模拟器

    还要确保编译这个:

    compile 'com.google.android.gms:play-services:8.3.0'
    

    (google play services的最新版本)如果没有运行,请在模拟器上查看google play services的版本,修改版本进行编译。

    【讨论】:

    • 我将 eclipse 与 adt 一起使用,但我使用正确的库编译并使用 google api 并且不起作用
    • 查看模拟器中google play服务的版本,编译该版本或之前的版本
    【解决方案3】:

    启动 SDK 管理器检查 API 在您创建模拟器的 android 版本中并安装它。打开 SDK 文件夹/system-images 并删除模拟器镜像。启动 Emulator Manager 并使用 api 下载新图像。启动新的模拟器并修复它。

    【讨论】:

      猜你喜欢
      • 2015-05-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多