Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
586 views
in Technique[技术] by (71.8m points)

android - Can not run Google Play service on emulator (need to update Google Play service)

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

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"

enter image description here

My test program works fine on a real device

The dependencies includes this:

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

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

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...