android - 无法在模拟器上运行 Google Play 服务(需要更新 Google Play 服务)

标签 android android-studio google-play

我尝试在模拟器上安装 Google Play。我已按照 Google Dev Site 中的说明进行操作.

使用 ADV 管理器似乎没问题,设备的目标是 Google API 版本 22,但是当我运行我的图像时,我总是有一个“除非您更新 Google Play 服务,否则此应用程序将无法运行”

enter image description here

我的测试程序在真实设备上运行良好

依赖项包括:

dependencies {
   compile 'com.google.android.gms:play-services:7.3.0'
}

我尝试手动添加 Google Play apk:

> adb install -r com.google.android.gms-7.3.29_\(1866531-038\)-7329038-minAPI9.apk 
4503 KB/s (37113767 bytes in 8.048s)
   pkg: /data/local/tmp/com.google.android.gms-7.3.29_(1866531-038)-7329038-minAPI9.apk

那么有没有办法检查模拟器是否与 Google Play 服务一起运行?如果不是,如何解决?

最佳答案

我必须使用 Google API 21(而不是 22)创建一个模拟器并且它有效......请参阅@selvin 评论

关于android - 无法在模拟器上运行 Google Play 服务(需要更新 Google Play 服务),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30165458/

相关文章:

Android O Developer Preview 模拟器始终离线

ios - 我可以在 PlayStore 和 App Store 上运行发布的 Microsoft PowerApps 应用程序吗?

java - 无法在 AlertDialog 中以编程方式更改 EditText 边距

android - 在 Android Studio 3.0 中使用 Gradle 脚本删除未对齐的 apk?

android - 无法使用 Pubnub 教程解析方法 requestLocationUpdates

android - 从 Google Play 商店获取应用程序用户信息

java - Google Play 拒绝了适用于全屏正确 DHU 型号的 Android Auto 应用程序

android - 在 Android 上将 HTML 转换为图像(任何格式)

android - android中的简单单选按钮 Action

android - DialogFragment/FragmentManager 在旋转时崩溃(使用 MVVMCross):IllegalStateException: Can not perform this action after onSaveInstanceState