How to install Google Play Services in a Genymotion VM (with no drag and drop support)?
As of Genymotion 2.10.0 and onwards, GApps can be installed from the emulator toolbar.
Please refer to answer by @MichaelStoddart.
Next follows former answer kept here for historic reason:
Genymotion doesn't provide Google Apps. To install Google Apps:
Upgrade Genymotion and VirtualBox to the latest version.
Download two zip files:
- ARM Translation Installer v1.1
- Google Apps for your Android version: 2.3.7 - 4.4.4 or 4.4 - 6.0 (with platform and variant) You can also find the GApps list in the wbroek user GitHubGist page.Open Genymotion emulator and go to home screen then drag and drop the first file Genymotion-ARM-Translation_v1.1.zip over the emulator. A dialog will appear and show as file transfer in progress, then another dialog will appear and ask that do you want to flash it on the emulator. Click OK and reboot the device by running
adb reboot
from your terminal or command prompt.Drag and drop the second file gapps-*-signed.zip and repeat the same steps as above. Run
adb reboot
again and, once rebooted, Google Apps will be in the emulator.At this point 'Google Apps Services' will crash frequently with the following message
google play services has stopped working
. Open Google Play. After providing your account details, open Google Play and update your installed Google Apps. This seems to make Google Play realize you have an old Google Play Services and will ask you to update (in my case, updating Google Hangouts required a new version of Google Play Services). I've also heard that simply waiting will also prompt you to update. The 'Google Play Services' app doesn't seem to appear otherwise - you can't search for it. You should then see an offer to update Google Play Services. Once the new Google Play Services is installed you will now have stable, working access to Google Play
Cannot install Google Play Services in my Genymotion
Click on the GApps icon in the top-right corner of the window: Genymotion will download and install the right Open GApps package for your device.
Google Play Services on Genymotion emulator with Android 7
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 getGoogle Play Store
andGoogle 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:
When you click on that logo, Genymotion will start downloading Open GApps
to your device:
Then, you will need to restart your device and you're all set:
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:
Click OK
and it will flash the file.
When the process is done you will be prompted with the following message:
All you need to do is to restart the device emulator and you will have Google Play on your Android Nougat emulator.
Enjoy.
How do you install Google frameworks (Play, Accounts, etc.) on a Genymotion virtual device?
Update May 28th, 2017: This method is no longer supported by me and doesn't work anymore as far as I know. Don't try it.
# How To Add Google Apps and ARM Support to Genymotion v2.0+ #
Note(Feb 2nd): Contrary to previous reports, it's been discovered that Android 4.4 does in fact work with ARM translation, although it is buggy. Follow the steps the same as before, just make sure you download the 4.4 GApps.
UPDATE-v1.1: I've gotten more up-to-date builds of libhoudini and have updated the ZIP file. This fixes a lot of app crashes and hangs. Just flash the new one, and it should work.
This guide is for getting back both ARM translation/support (this is what causes the "INSTALL_FAILED_CPU_ABI_INCOMPATIBLE" errors) and Google Play apps in your Genymotion VM.
- Download the following ZIPs:
- ARM Translation Installer v1.1 (Mirrors)
If you have issues flashing ARM translation, try re-downloading from a mirror - Download the correct GApps for your Android version:
If you have issues flashing GApps, try re-downloading from a mirror- Google Apps for Android 6.0
- Google Apps for Android 5.1
- Google Apps for Android 5.0
- Google Apps for Android 4.4 (Download from CM11 Links) (4.4 GApps might have bugs)
- Google Apps for Android 4.3 (Mirrors)
- Google Apps for Android 4.2
- Google Apps for Android 4.1
- ARM Translation Installer v1.1 (Mirrors)
- Next open your Genymotion VM and go to the home screen
- Now drag&drop the Genymotion-ARM-Translation_v1.1.zip onto the Genymotion VM window.
- It should say "File transfer in progress". Once it asks you to flash it, click 'OK'.
- Now reboot your VM using ADB (
adb reboot
) or an app like ROM Toolbox. If nescessary you can simply close the VM window, but I don't recommend it. - Once you're on the home screen again drag&drop the gapps-*-signed.zip (the name varies) onto your VM, and click 'OK' when asked.
- Once it finishes, again reboot your VM and open the Google Play Store.
- Sign in using your Google account
- Once in the Store go to the 'My Apps' menu and let everything update (it fixes a lot of issues). Also try updating Google Play Services directly.
- Now try searching for 'Netflix' and 'Google Drive'
- If both apps show up in the results and you're able to Download/Install them, then congratulations: you now have ARM support and Google Play fully set up!
I've tested this on Genymotion v2.0.1-v2.1 using Android 4.3 and 4.4 images. Feel free to skip the GApps steps if you only want the ARM support. It'll work perfectly fine by itself.
Old Zips: v1.0. Don't download these as they will not solve your issues. It is left for archival and experimental purposes.
How to install Google Play Services on 6.0 Genymotion device?
Ivan,
I found the solution here and followed the steps from the user @sinistance and it worked for me using the Nexus 5X Preview API 23.
To simplify this is the answer:
what image did you use? i'm using the preview nexus 5x image. here is the steps:
- flash Genymotion-ARM-Translation_v1.1.zip then restart.
- flash gapps-L-4-21-15.zip.
- sign in into your google account.
- flash benzo-gapps-M-20151011-signed-chroma-r3.zip then restart.
that's all
You can find all the files in the link above!
I hope it works for you!
Regards
Related Topics
Auto Scale Textview Text to Fit Within Bounds
How to Get Extra Data from Intent on Android
How to Use Getdownloadurl in Recent Versions
Re-Launch of Activity on Home Button, But...Only the First Time
How to Display an Alert Dialog on Android
How to Send a "Multipart/Form-Data" Post in Android With Volley
Firebase Data Desc Sorting in Android
All Com.Android.Support Libraries Must Use the Exact Same Version Specification
Android Kotlin: Getting a Filenotfoundexception With Filename Chosen from File Picker
How to Avoid Reverse Engineering of an Apk File
Example: Communication Between Activity and Service Using Messaging
Google Maps Android API V2 - Interactive Infowindow (Like in Original Android Google Maps)
Android, Detect When Other Apps Are Launched
This App Won't Run Unless You Update Google Play Services (Via Bazaar)