Android 如何在 Genymotion VM 中安装 Google Play 服务(不支持拖放)?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20121883/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 02:20:01  来源:igfitidea点击:

How to install Google Play Services in a Genymotion VM (with no drag and drop support)?

androidgoogle-play-servicesgenymotion

提问by anp8850

How can I install Google Play Services in a Genymotion emulator with no drag and drop support?

如何在没有拖放支持的 Genymotion 模拟器中安装 Google Play 服务?

I can't install it as mentioned in Stack Overflow post How do you install Google frameworks (Play, Accounts, etc.) on a Genymotion virtual device?due to the lack of support for drag and drop installation.

我无法像 Stack Overflow 帖子中提到的那样安装它你如何在 Genymotion 虚拟设备上安装 Google 框架(播放、帐户等)?由于缺乏对拖放安装的支持。

Genymotion supports Google Apps for a few emulators, but it doesn't support tablet emulators.

Genymotion 支持一些模拟器的 Google Apps,但它不支持平板电脑模拟器。

回答by anp8850

As of Genymotion 2.10.0 and onwards, GApps can be installed from the emulator toolbar. Please refer to answerby @MichaelStoddart.

从 Genymotion 2.10.0 开始,可以从模拟器工具栏安装 GApps。请参考@ MichaelStoddart 的回答

Next follows former answer kept here for historic reason:

接下来是出于历史原因保留在此处的先前答案:

Genymotion doesn't provide Google Apps. To install Google Apps:

Genymotion 不提供 Google Apps。要安装 Google Apps:

  1. Upgrade Genymotion and VirtualBox to the latest version.

  2. Download two zip files:
    - ARM Translation Installer v1.1
    - Google Apps for your Android version: 2.3.7 - 4.4.4or 4.4 - 6.0 (with platform and variant)You can also find the GApps list in the wbroekuser GitHubGist page.

  3. Open Genymotion emulator and go to home screen then drag and drop the first file Genymotion-ARM-Translation_v1.1.zipover 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 rebootfrom your terminal or command prompt.

  4. Drag and drop the second file gapps-*-signed.zipand repeat the same steps as above. Run adb rebootagain and, once rebooted, Google Apps will be in the emulator.

  5. At this point 'Google Apps Services' will crash frequentlywith 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

  1. 将 Genymotion 和 VirtualBox 升级到最新版本。

  2. 下载两个 zip 文件:
    - ARM Translation Installer v1.1
    -适用于您 Android 版本的 Google Apps2.3.7 - 4.4.44.4 - 6.0(带平台和变体)您还可以在wbroek用户的GitHubGist 页面中找到 GApps 列表.

  3. 打开 Genymotion 模拟器并转到主屏幕,然后将第一个文件Genymotion-ARM-Translation_v1.1.zip拖放到模拟器上。将出现一个对话框并显示文件传输正在进行中,然后将出现另一个对话框并询问您是否要在模拟器上刷入它。单击“确定”并通过adb reboot从终端或命令提示符运行来重新启动设备。

  4. 拖放第二个文件gapps-*-signed.zip并重复与上述相同的步骤。adb reboot再次运行,重新启动后,Google Apps 将在模拟器中。

  5. 此时“Google Apps 服务”会频繁崩溃并显示以下消息google play services has stopped working。打开谷歌播放。提供您的帐户详细信息后,打开 Google Play 并更新您安装的 Google Apps。这似乎让 Google Play 意识到您有一个旧的 Google Play 服务,并会要求您更新(在我的情况下,更新 Google Hangouts 需要新版本的 Google Play 服务)。我还听说只是等待也会提示您更新。“Google Play 服务”应用似乎不会以其他方式出现 - 您无法搜索它。然后,您应该会看到更新 Google Play 服务的提议。安装新的 Google Play 服务后,您现在可以稳定、有效地访问 Google Play

回答by MichaelStoddart

The latest version of Genymotion (2.10.0 onwards) now allows you to install GApps from the emulator toolbar:

最新版本的 Genymotion(2.10.0 以后)现在允许您从模拟器工具栏安装 GApps:

enter image description here

在此处输入图片说明

Click the GApps button the toolbar

单击工具栏上的 GApps 按钮

enter image description here

在此处输入图片说明

Accept the Terms and Conditions

接受条款和条件

enter image description here

在此处输入图片说明

Your download of google apps will then begin

然后您将开始下载谷歌应用程序

Once the download is complete simply restart the virtual device!

下载完成后,只需重新启动虚拟设备即可!

回答by KingyBobo

You could do this simply by:

你可以简单地通过以下方式做到这一点:

  1. Download the ARM Translation Installer v1.1(ARMTI)
  2. Download the Google Apps for your Android version 4.4, 4.3, 4.2, or 4.1 for instance
  3. Drag and drop the ARMTI to the HomeScreen of your emulator, and confirm all
  4. Reboot your emulator
  5. Drag & Drop the correct Google App version to your HomeScreen
  6. Reboot your emulator
  7. JOB DONE.
  1. 下载 ARM 翻译安装程序 v1.1(ARMTI)
  2. 例如,为您的 Android 版本 4.4、4.3、4.2 或 4.1 下载 Google Apps
  3. 将 ARMTI 拖放到模拟器的主屏幕,并确认所有
  4. 重启你的模拟器
  5. 将正确的 Google App 版本拖放到您的主屏幕
  6. 重启你的模拟器
  7. 任务完成。

NOTE:you can find the right GApp version here:

注意:您可以在此处找到正确的 GApp 版本:

http://forum.xda-developers.com/showthread.php?t=2528952

http://forum.xda-developers.com/showthread.php?t=2528952

回答by Mahesh N

I tried almost all of the above options, but was not able to install google play services, however just found from the faq section of genymotionthat the only way to access google play services is to use the packages provided by OpenGapps.

我尝试了几乎所有上述选项,但无法安装 google play 服务,但是刚刚从genymotion 的 faq 部分发现访问 google play 服务的唯一方法是使用 OpenGapps 提供的包。

I tried and this worked:

我试过了,这有效:

  1. Visit opengapps.org
  2. Select x86 as platform
  3. Choose the Android version corresponding to your virtual device
  4. Select nano as variant
  5. Download the zip file
  6. Drag & Drop the zip installer in new Genymotion virtual device (2.7.2 and above only)
  7. Follow the pop-up instructions
  1. 访问 opengapps.org
  2. 选择 x86 作为平台
  3. 选择与您的虚拟设备对应的 Android 版本
  4. 选择 nano 作为变体
  5. 下载压缩文件
  6. 将 zip 安装程序拖放到新的 Genymotion 虚拟设备中(仅限 2.7.2 及更高版本)
  7. 按照弹出的说明进行操作

回答by Mahesh N

For Android 6.0 at least, the ARM Translation thing is apparently unnecessary.

至少对于 Android 6.0,ARM Translation 的东西显然是没有必要的。

Just grab an x86 + Android 6.0 package (nano is fine) from OpenGAppsand install by dragging-and-dropping and telling it to flash.

只需从OpenGApps 中获取一个 x86 + Android 6.0 包(nano 很好)并通过拖放安装并让它闪烁。

It seems the ARM translation thing was previously required, before the x86 package was available. You might still need the ARM translation if you want to install ARM-only apps though.

在 x86 包可用之前,似乎以前需要 ARM 转换。如果您想安装仅 ARM 的应用程序,您可能仍然需要 ARM 转换。

回答by rnrneverdies

For Genymotion "Lollipop Preview - Nexus 5" virtual device

对于 Genymotion “Lollipop Preview - Nexus 5”虚拟设备

More GApps here

更多 GApp在这里

Note that Google+ shows lot of errors before updated.

请注意,Google+ 在更新之前会显示很多错误。

回答by pRaNaY

Now Gappsprovide way to install gapps package thorough apk.

现在Gapps提供了安装 gapps 包彻底 apk 的方法。

Download APK and installation instruction from below link:

从以下链接下载 APK 和安装说明:

http://opengapps.org/app/

http://opengapps.org/app/

You can download current APK from below link:

您可以从以下链接下载当前的 APK:

Play store link: https://play.google.com/store/apps/details?id=org.opengapps.app

Play 商店链接:https: //play.google.com/store/apps/details?id=org.opengapps.app

Current version Website Link (7/22/2017): http://opengapps.org/app/opengapps-app-v16.apk

当前版本网站链接(7/22/2017):http: //opengapps.org/app/opengapps-app-v16.apk

enter image description here

在此处输入图片说明

回答by NullNoname

With adb, you can install GApps and ARM Support zips without a drag & drop. emuking from XDA Developershas instructions for it:

使用 adb,您无需拖放即可安装 GApps 和 ARM Support zip。 来自 XDA Developers 的 emuking有相关说明:

I used 4.2.2, which is acceptable for my testing purposes. I then extracted both zip's "/system/..." folders to a folder on my desktop. In cmd prompt I used the following commands (step 1 is optional and for verification that adb is working):

我使用了 4.2.2,这对于我的测试目的是可以接受的。然后我将两个 zip 的“/system/...”文件夹解压缩到我桌面上的一个文件夹中。在 cmd 提示符下,我使用了以下命令(步骤 1 是可选的,用于验证 adb 是否正常工作):

  1. adb devices
  2. adb remount
  3. adb push "C:\Users\John\Desktop\GenyF_cked\system" /system
  1. 亚行设备
  2. 亚行重新挂载
  3. adb push "C:\Users\John\Desktop\GenyF_cked\system" /system

You'll have to change the folder name in "adb push" line to where you actually extracted both zip files. After doing it, I recommend you to "adb reboot" the device.

您必须将“adb push”行中的文件夹名称更改为实际解压缩两个 zip 文件的位置。完成后,我建议您“adb reboot”设备。

回答by mixel

  1. Download ARM Translation v1.1and flash it by dragging and dropping over the emulator. Then reboot the emulator.
  2. Go to Open GApps, select x86 architecture, Android version of your emulator and variant (nano is enough, other applications can be installed from Play Store) and download zip archive. Drag and drop this archive to the emulator and flash it. Reboot the emulator.
  1. 下载ARM Translation v1.1并通过在模拟器上拖放来刷新它。然后重启模拟器。
  2. 转到Open GApps,选择 x86 架构、模拟器的 Android 版本和变体(nano 就足够了,其他应用程序可以从 Play 商店安装)并下载 zip 存档。将此存档拖放到模拟器中并刷入它。重启模拟器。

回答by Lukas Lechner

Drag and Drop did not work on my system...

拖放在我的系统上不起作用...

I found a blogpostwhich describes how you install it with adb:

我找到了一篇博客文章,描述了如何使用 adb 安装它:

adb push Genymotion-ARM-Translation_v1.1.zip /sdcard/Download/Genymotion-ARM-Translation_v1.1.zip

adb push gapps-jb-yyyymmdd-signed.zip /sdcard/Download/gapps.zip

adb shell flash-archive.sh /sdcard/Download/Genymotion-ARM-Translation_v1.1.zip

adb reboot

adb shell flash-archive.sh /sdcard/Download/gapps.zip

adb reboot