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 1929
长发绾君心
长发绾君心 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: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.

提交回复
热议问题