带有 Android 7 的 Genymotion 模拟器上的 Google Play 服务 [英] Google Play Services on Genymotion emulator with Android 7

查看:35
本文介绍了带有 Android 7 的 Genymotion 模拟器上的 Google Play 服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我购买了 Genymotion,目标是使用 Android 7.0 和 Google Play 进行模拟.

Android 7.0 在 Genymotion 上运行良好,但我无法在其上安装 Google Play.

Google Play 适用于 Android 6.0 及更低版本 - 我能够找到必须额外安装才能在 Genymotion 中使用 Google Play 的源(Flash).

有人知道如何使用 Genymotion 在 Android 7.0 设备上安装 Google Play 吗?

解决方案

更新答案
从 Genymotion 2.10 开始,您可以轻松安装 Google Play Services,而无需处理 zip 文件.您现在有了一个一键安装程序(称为Open GApps"小部件).

以下几点需要考虑:

  • 只要安装了 Genymotion 2.10,一键式安装程序 就适用于每台运行 Android 4.4 或更高版本的设备(无论是新的还是已经创建的).
  • Open GApps 小部件会安装最小的变体(即 pico),因为它适合大多数开发和测试需求.
    这意味着您只能获得 Google Play StoreGoogle Play Services,而没有其他任何东西.

如果您需要访问更多 Google 应用程序,您可以访问 Play 商店 并从那里下载它们,或者您可以从他们的网站安装 Open GApps 的另一个变体,如我原来的答案中所述.

如何使用小部件并安装Open GApps
只需打开您的 Genymotion 设备.
您将在右侧栏中看到一个灰色的 Open GApps 徽标,以及所有其他设置:

当您单击该徽标时,Genymotion 将开始将 Open GApps 下载到您的设备:

然后,您需要重新启动设备,一切就绪:

<小时>

原答案
为了安装 Google Play 并在 Genymotion 上使用它,您需要找到一个预构建的 Google Apps 包的 zip 文件到模拟器上.

正如对您问题的评论中提到的,Genymotion 的 ROM 被编译为 x86 以匹配最流行的计算机的 CPU 架构.
但是,大多数可用的预构建 Google Apps 软件包都使用在手机中流行的 ARM 架构.
一些评论提到需要安装 ARM Translation,这将使那些 ARM 应用程序在 x86 虚拟设备上运行,但可能很难找到适用于 Android Nougat 的正确翻译文件无论如何,它根本没有必要.

您可以访问 点击OK,文件就会闪现.
该过程完成后,系统将提示您以下消息:您需要做的就是重新启动设备模拟器,然后您的 Android Nougat 模拟器上就会有 Google Play.
享受吧.

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?

解决方案

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:

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.

这篇关于带有 Android 7 的 Genymotion 模拟器上的 Google Play 服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆