Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Genymotion Location (Google Services API) doesn't work

I installed Google Services API in my Genymotion and after I downloaded the location example (https://github.com/googlesamples/android-play-location/tree/master/BasicLocationSample) and it doesn't work, I set GPS and Data abled. I tested it on my real phone and it works! How to fix?

Google Maps find me on map.

like image 563
user4747586 Avatar asked Feb 27 '26 04:02

user4747586


2 Answers

Make sure the emulator has Google Play Services installed, and that it's up to date. You can update it to the latest version from the Play Store

like image 194
John Oleynik Avatar answered Mar 02 '26 15:03

John Oleynik


If Google Play Services on Android 6.0 crash everytime, you can try do the same things in this sequence. Maybe it will work.

Here is what I did:

  1. Install a latest Genymotion (version 2.6.0 in my case). Make sure the previous old (preview) Android 6.0 images are removed(Genymotion -> Settings -> Misc -> Clear cache).
  2. Add a new virtualdevice, select Google Nexus 5X and Android 6.0 image. It should download a new image from Genymotion website.Start created Google Nexus 5X - 6.0.0 - API 23 - 1080x1920 virtual device.
  3. Flash Genymotion-ARM-Translation_v1.1.zip (drag&drop the zip file to virtual device window) and then restart the virtual device.
  4. Flash gapps-L-4-21-15.zip and restart the virtual device again. Now add Google account in the virtual device via Settings -> Accounts -> Add account. Do not start Google Play! Ignore any crashes in sign in process.
  5. Flash benzo-gapps-M-20151011-signed-chroma-r3.zip and restart the virtual device. Open Google Play in virtual device,update all installed applications.
  6. Start Google Now with long touch on home button to force dialog with request to update Google Play Services. Update Google Play Services. Now the device is prepared with working Google Play and Google Play Services.

Genymotion android 6.0 with Google play service

like image 29
Tong Chen Avatar answered Mar 02 '26 13:03

Tong Chen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!