Play Services and Location Testing on Emulators

If you are using an AVD emulator, you must first make sure that your emulator images are up to date.

To do that, open up your SDK Manager (ToolsAndroidSDK Manager). Go down to the version of Android you plan to use for your emulator and ensure that the Google APIs System Images are both installed and up to date. If an update is available, click the button to install the update and wait until it is ready to go before continuing (Figure 31.2).

Figure 31.2  Ensuring your emulator is up to date

Ensuring your emulator is up to date

Your AVD emulator also needs to have a target OS version that supports the Google ...

Get Android Programming: The Big Nerd Ranch Guide, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.