Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Play Services on Genymotion emulator with Android 7

I have purchased Genymotion with the goal to have a simulation with Android 7.0 and Google Play.

Android 7.0 runs fine on Genymotion, but I am not able to install Google Play on it.

Google Play works fine for Android 6.0 and below - I was able to find the sources (Flashes) that must be installed additionally for using Google Play in Genymotion.

Does someone know how to install Google Play on an Android 7.0 Device with Genymotion?

like image 381
mcfly soft Avatar asked Nov 26 '22 21:11

mcfly soft


1 Answers

Updated answer
Since Genymotion 2.10, you are able to install Google Play Services within ease without dealing with zip files. You now have a 1-click installer (called "Open GApps" widget).

Here are few notes to consider:

  • The 1-click installer is available for every device running Android 4.4 or more (whether new or already created), as long as Genymotion 2.10 is installed.
  • The Open GApps widget installs the smallest variant (i.e. pico) as it fits most development and testing needs.
    That means you only get Google Play Store and Google Play Services and nothing else.

If you need access to further Google apps, you can either visit the Play Store and download them from there or you can install another variant of Open GApps from their website, as describe in my original answer.

How to use the widget and install Open GApps
Just open your Genymotion device.
You will see a gray Open GApps logo on the right bar, alongside with all the other settings:

Unused Open GApps widget

When you click on that logo, Genymotion will start downloading Open GApps to your device:

Downloading Open GApps

Then, you will need to restart your device and you're all set:

Instalation Seccusfull


Original answer
In order to install Google Play and use it on Genymotion, you will need to find a zip file of the pre-built Google Apps packages to onto the emulator.

As mentioned in the comments to your question, Genymotion's ROM is compiled to x86 to match the most popular computer's CPU architecture.
However, most of the pre-built Google Apps packages available are using ARM architecture, which is popular among phones.
Some of the comments mentioned the need for installing an ARM Translation which will let those ARM apps to run on the x86 virtual device, but it might be difficult to find the right translation file for Android Nougat and anyway that it not necessary at all.

You are able to go to the open GApps site and install the needed pre-built Google Apps packages that you desire.
Make sure to choose Platform: x86 and the proper Android version.

In order to install it on Genymotion just drag and drop the zip file into the emulator and you will be prompted with the following message which lets you know that the file can be flashed to the device: Flashing openGApps on Genymotion emulator Click OK and it will flash the file.
When the process is done you will be prompted with the following message: Flashing process onto Genymotion emulator is done All you need to do is to restart the device emulator and you will have Google Play on your Android Nougat emulator.
Enjoy.

like image 99
Matan Itzhak Avatar answered Dec 15 '22 04:12

Matan Itzhak