0

I am trying to compile the sample code on еclipse from https://developer.android.com/training/location/retrieve-current.html, I installed Google Play services, follow steps http://developer.android.com/google/ play-services/setup.html # Setup and received the following error: This application will not run without Google Play services that are missing from your phone.How to fix the problem?

1 Answers1

0

In order to test Google Play Services on an emulator, I'd suggest doing the following:

  1. Obtain the Genymotion emulator (it has a free version). This emulator is way faster and easy to work with than the stock SDK one.
  2. Download a "Google apps' (gapps) package. Example sources: source1, source2.
  3. After installing the emulator, setting up a virtual device and starting it, simply drag-and-drop the gapps zip into the running device window. You will see a "Filte transfer in progress" dialog, followed by this dialog:

gapps install confirmation dialog

Then you need to click OK, at which point you will get the following confirmation: flashing successful dialog

Now just reboot the virtual device, and you'll have gapps installed. Also note that you need to enable the GPS once the virtual device has booted, using the button on the right of the interface: GPS button in Genymotion

This procedure will get you very close to a real device.

Dev-iL
  • 23,742
  • 7
  • 57
  • 99