无法在模拟器上运行 Google Play 服务(需要更新 Google Play 服务) [英] Can not run Google Play service on emulator (need to update Google Play service)

查看:487
本文介绍了无法在模拟器上运行 Google Play 服务(需要更新 Google Play 服务)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I've tried to install Google Play on the emulator. I've followed the instruction from Google Dev Site.

使用 ADV 管理器似乎没问题,设备面向 Google API 版本 22,但是当我运行我的图像时,我总是有一个除非您更新 Google Play 服务,否则此应用程序不会运行"

Using ADV manager it seems ok, devices are targeting Google API version 22, but when I run my image I always have an "This app won't run unless you update Google Play services"

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

My test program works fine on a real device

依赖项包括:

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

我尝试手动添加 Google Play apk:

I've tried to manually add the 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 服务一起运行?如果不是,如何解决问题?

So is there a way to check emulator is running with Google Play services? If no, how to solve the problem?

推荐答案

我必须使用 Google API 21(而不是 22)创建一个模拟器,并且它起作用了...见@selvin 评论

I had to create an emulator with Google API 21 (and not 22) and it worked... See @selvin remarks

这篇关于无法在模拟器上运行 Google Play 服务(需要更新 Google Play 服务)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆