Google play services out of date on a virtual machine

 ̄綄美尐妖づ 提交于 2020-01-04 04:32:13

问题


I'm trying to make an application using google maps, but in the emulator it does not work in console I see the following error:

W/GooglePlayServicesUtil(1041): Google Play services out of date.  Requires 3159100 but found 3136130

On screen I see that I have to update google services ..

My virtual machine is 4.2.2

What do I do? I've searched the forums here .. but no solution that I've tried has worked ..


回答1:


Install a compatible version of the Google APIs platform. Open the sdk manager and check if you have the updated Google play services.(assuming you use eclipse)

Quoting from the docs.

If you want to test your app on the emulator, expand the directory for Android 4.2.2 (API 17) or a higher version, select Google APIs, and install it. Then create a new AVD with Google APIs as the platform target.

Note: Only Android 4.2.2 and higher versions of the Google APIs platform include Google Play services.

http://developer.android.com/google/play-services/setup.html

Check the topic under Ensure Devices Have the Google Play services APK.

Make sure you have the latest updates




回答2:


This is a Google issue. Check this out - https://code.google.com/p/android/issues/detail?id=57880

They've posted a message saying that they will post the updated play services soon. Till then (as of 31 July) you won't be able to run the Google Maps API on your emulator even if you do all the steps required.

Edit: As of September 2013, they've launched an update for it..




回答3:


In your SDK manager, make sure you've downloaded the latest 'Google play services' or alternatively download them manually and adb install onto the emulator.




回答4:


I resolved this issue by creating a new avd with target version as : Google APIs(GoogleInc) API Level 18. (platform 4.3 google api required)



来源:https://stackoverflow.com/questions/17675514/google-play-services-out-of-date-on-a-virtual-machine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!