Google Play Services on Android Emulator 4.2.2 or higher. “Google Maps API demos won't run unless you update Google Play Services”

前端 未结 2 1930
长发绾君心
长发绾君心 2021-01-14 05:42

Here are some related threads, but these solutions are not working:

1.Running Google Maps v2 on the Android emulator

2.How to run Google Map API V2 on Androi

相关标签:
2条回答
  • 2021-01-14 06:20

    Make sure you are using the Google APIs (Google Inc.) as your Emulator's target. and if this doesn't solve the problem, you can google the newest Google Play Services' apk and install it over adb install.

    =-=-= edit =-=-=
    It seems like there is a bug regarding to the Google Play services on the API level 22 emulator. I filed a bug for it.
    https://code.google.com/p/android/issues/detail?id=176348&thanks=176348&ts=1433887196

    Google Play services seems to be fine on API 21, and API MNC

    0 讨论(0)
  • 2021-01-14 06:21

    If you're emulator is built upon an SDK platform with Google Play Services, and you're still getting runtime errors when trying to access Play Services APIs.....

    Delete the emulator, and in the SDK manager, also uninstall the SDK platform on which that emulator was built.

    Then, re-download that SDK platform and re-build your emulator.

    Why?

    If there have been updates to Google Play Services since you've downloaded said SDK platform and built that emulator, the legacy version of Google Play Services is probably still in that SDK platform's build.

    I found the only way to get the most recent version of Play Services is to re-download the SDK platform and re-build the emulator.

    0 讨论(0)
提交回复
热议问题