如何在Genymotion虚拟设备上安装Google框架(Play,Accounts等)? [重复]

本文翻译自:How do you install Google frameworks (Play, Accounts, etc.) on a Genymotion virtual device? [duplicate]

This question already has an answer here: 这个问题在这里已有答案:

  • How to install Google Play Services in a Genymotion VM (with no drag and drop support)? 如何在Genymotion VM中安装Google Play服务(没有拖放支持)? 16 answers 16个答案

I'm currently trying out Genymotion and boy, it's so much faster than the ADT emulator. 我目前正在尝试Genymotion和男孩,它比ADT模拟器快得多。

But I need to install Google Play to download some apps into it. 但我需要安装Google Play才能将一些应用下载到其中。 How do I do this? 我该怎么做呢?


#1楼

参考:https://stackoom.com/question/1Couk/如何在Genymotion虚拟设备上安装Google框架-Play-Accounts等-重复


#2楼

EDIT 2 编辑2

After three months we can say: no more official Google Apps in Genymotion and CyanogenMod -like method is only way to get Google Apps. 三个月后,我们可以说:Genymotion和CyanogenMod方法中的官方Google Apps不再是获取Google Apps的唯一途径。 However, you can still use the previous project of the Genymotion team: AndroVM ( download mirror ). 但是,您仍然可以使用Genymotion团队的先前项目: AndroVM ( 下载镜像 )。


EDIT 编辑

Google apps will be removed from Genymotion in November. Google应用程序将于11月从Genymotion中删除。 You can find more information on the Genymotion Google Plus page. 您可以在Genymotion Google Plus页面上找到更多信息。


Choose virtual device with Google Apps: 选择使用Google Apps的虚拟设备:

Done: 完成:


#3楼

Since the previous answer no longer applies for new devices created with Genymotion 2.0, here is a new solution. 由于上一个答案不再适用于使用Genymotion 2.0创建的新设备,因此这是一个新的解决方案。

Install Google Play on Genymotion 2.0 在Genymotion 2.0上安装Google Play

The reason it no longer applies is because Genymotion no longer includes Google Apps in the virtual device image. 它不再适用的原因是因为Genymotion不再在虚拟设备映像中包含Google Apps。 According to Genymotion they are working with Google, but in the meantime this is a good workaround. 根据Genymotion,他们正在与谷歌合作,但与此同时,这是一个很好的解决方法。


#4楼

Update May 28th, 2017: This method is no longer supported by me and doesn't work anymore as far as I know. 2017年5月28日更新:我不再支持此方法,据我所知,此方法不再适用。 Don't try it. 不要试试。


# How To Add Google Apps and ARM Support to Genymotion v2.0+ # #如何将Google Apps和ARM支持添加到Genymotion v2.0 +#

Original Source: [GUIDE] Genymotion | 原始来源: [GUIDE] Genymotion | Installing ARM Translation and GApps - XDA-Developers 安装ARM转换和GApps - XDA开发人员

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. 注意(2月2日):与之前的报告相反,人们发现Android 4.4确实可以与ARM翻译一起工作,尽管它有缺陷。 Follow the steps the same as before, just make sure you download the 4.4 GApps. 按照与以前相同的步骤,确保下载4.4 GApps。

UPDATE-v1.1: I've gotten more up-to-date builds of libhoudini and have updated the ZIP file. UPDATE-v1.1:我已经获得了更多libhoudini的最新版本并更新了ZIP文件。 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. 本指南用于恢复ARM翻译/支持(这是导致“INSTALL_FAILED_CPU_ABI_INCOMPATIBLE”错误的原因)和Genymotion VM中的Google Play应用程序。

  1. Download the following ZIPs: 下载以下ZIP:
    • ARM Translation Installer v1.1 ( Mirrors ) ARM Translation Installer v1.1 ( 镜像 )
      If you have issues flashing ARM translation, try re-downloading from a mirror 如果您在刷新ARM转换时遇到问题,请尝试从镜像重新下载
    • Download the correct GApps for your Android version: 为您的Android版下载正确的GApps:
      If you have issues flashing GApps, try re-downloading from a mirror 如果您在闪存GApp时遇到问题,请尝试从镜像重新下载
      • Google Apps for Android 6.0 适用于Android 6.0的Google Apps
      • Google Apps for Android 5.1 适用于Android 5.1的Google Apps
      • Google Apps for Android 5.0 适用于Android 5.0的Google Apps
      • Google Apps for Android 4.4 ( Download from CM11 Links ) (4.4 GApps might have bugs) 适用于Android 4.4的Google Apps ( 从CM11链接下载 ) (4.4 GApps可能存在错误)
      • Google Apps for Android 4.3 ( Mirrors ) 适用于Android 4.3的Google Apps ( 镜像 )
      • Google Apps for Android 4.2 适用于Android 4.2的Google Apps
      • Google Apps for Android 4.1 适用于Android 4.1的Google Apps
  2. Next open your Genymotion VM and go to the home screen 接下来打开您的Genymotion VM并转到主屏幕
  3. Now drag&drop the Genymotion-ARM-Translation_v1.1.zip onto the Genymotion VM window. 现在将 Genymotion-ARM-Translation_v1.1.zip拖放到Genymotion VM窗口。
  4. It should say "File transfer in progress". 它应该说“正在进行文件传输”。 Once it asks you to flash it, click 'OK'. 一旦它要求您闪烁,请单击“确定”。
  5. Now reboot your VM using ADB ( adb reboot ) or an app like ROM Toolbox. 现在使用ADB( adb reboot )或ROM Toolbox等应用程序重新启动VM。 If nescessary you can simply close the VM window, but I don't recommend it. 如果必要,您只需关闭VM窗口,但我不推荐它。
  6. 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. 进入主屏幕后,再次将 gapps - * - signed.zip (名称变化)拖放到您的VM上,并在询问时单击“确定”。
  7. Once it finishes, again reboot your VM and open the Google Play Store. 完成后,再次重新启动VM并打开Goog​​le Play商店。
  8. Sign in using your Google account 使用您的Google帐户登录
  9. 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. 另请尝试直接更新 Google Play服务 。
  10. Now try searching for 'Netflix' and 'Google Drive' 现在尝试搜索“Netflix”和“Google云端硬盘”
  11. 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! 如果两个应用程序都显示在结果中并且您可以下载/安装它们,那么恭喜您:您现在已经完全设置了ARM支持和Google Play!

I've tested this on Genymotion v2.0.1-v2.1 using Android 4.3 and 4.4 images. 我使用Android 4.3和4.4图像在Genymotion v2.0.1-v2.1上测试了这个。 Feel free to skip the GApps steps if you only want the ARM support. 如果您只需要ARM支持,请随意跳过GApps步骤。 It'll work perfectly fine by itself. 它本身就能很好地工作。


Old Zips: v1.0 . 老拉链: v1.0 。 Don't download these as they will not solve your issues. 请勿下载这些内容,因为它们无法解决您的问题。 It is left for archival and experimental purposes. 它留给档案和实验目的。


#5楼

Try to do all the steps specified in the link below and before that upgrade VirtualBox to 4.2 by following the instructions in VirtualBox 4.2.0 Released With Support For Drag'n'drop From Host To Linux Guests, More . 尝试执行下面链接中指定的所有步骤,然后按照VirtualBox 4.2.0中的说明将VirtualBox升级到4.2, 发布支持从主机拖放到Linux客户端,更多 Then upgrade Genymotion to the latest version. 然后将Genymotion升级到最新版本。

Go to the desktop and run Genymotion. 转到桌面并运行Genymotion。 Select a virtual device with Android version 4.2 and then drag and drop the two files Genymotion-ARM-Translation_v1.1.zip first. 选择Android版本为4.2的虚拟设备,然后先拖放两个文件Genymotion-ARM-Translation_v1.1.zip Then Genymotion will show progress and after this it will promt a dialog. 然后Genymotion将显示进度,然后它将提示对话。 Then click OK and it will ask to reboot the device. 然后单击“确定”,它将要求重新启动设备。 Restart ADB . 重启ADB 。 Do the same steps for the second file, gapps-jb-20130812-signed.zip and restart ADB. 对第二个文件gapps-jb-20130812-signed.zip执行相同的步骤并重新启动ADB。

I hope this will resolve the issue. 我希望这能解决这个问题。 Check this link - it explains it clearer. 检查此链接 - 它解释得更清楚。


#6楼

Alright, this is probably the easiest way to do it: 好吧,这可能是最简单的方法:

  1. First of all, you will have to install GAPPS . 首先,您必须安装GAPPS 。
  2. Next, open the virtual box and wait for the home screen to show up on Genymotion. 接下来,打开虚拟框并等待主屏幕显示在Genymotion上。
  3. Drag and drop the GAPPS folder that you had downloaded earlier on into Genymotion. 将先前下载的GAPPS文件夹拖放到Genymotion中。
  4. You would get a prompt. 你会得到一个提示。 Click OK. 单击确定。 You would see a lot of errors, but just ignore them and wait for the successful prompt to come up. 您会看到很多错误,但只是忽略它们并等待成功的提示出现。 Click OK again and restart the virtual device. 再次单击“确定”并重新启动虚拟设备。
  5. A Google account screen should show up. 应显示Google帐户屏幕。 Open up the playstore app if it doesn't show up. 如果Playstore应用程序没有显示,请打开它。 Sign into your account. 登录到您的帐户。 Again ignore the errors. 再次忽略错误。
  6. The playstore should open now and should be fully functional. Playstore现在应该打开并且应该完全正常运行。

你可能感兴趣的:(如何在Genymotion虚拟设备上安装Google框架(Play,Accounts等)? [重复])