本文翻译自:How to install Google Play Services in a Genymotion VM (with no drag and drop support)?
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? 我不能像Stack Overflow post中提到的那样安装它如何在Genymotion虚拟设备上安装Google框架(Play,Accounts等)? due to the lack of support for drag and drop installation. 由于缺乏对拖放安装的支持。
Genymotion supports Google Apps for a few emulators, but it doesn't support tablet emulators. Genymotion支持几个模拟器的Google Apps,但它不支持平板电脑模拟器。
#1楼
参考:https://stackoom.com/question/1MQcV/如何在Genymotion-VM中安装Google-Play服务-没有拖放支持
#2楼
Genymotion doesn't provide Google Apps. Genymotion不提供Google Apps。 To install Google Apps: 要安装Google Apps:
Upgrade Genymotion and VirtualBox to the latest version. 将Genymotion和VirtualBox升级到最新版本。
Download two zip files: 下载两个zip文件:
- ARM Translation Installer v1.1 - 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 . - 适用于Android版本的Google Apps : 2.3.7 - 4.4.4或4.4 - 6.0(包含平台和版本)您还可以在wbroek用户GitHubGist页面中找到GApps列表。Open Genymotion emulator and go to home screen then drag and drop the first file Genymotion-ARM-Translation_v1.1.zip over the emulator. 打开Genymotion模拟器并转到主屏幕,然后将第一个文件Genymotion-ARM-Translation_v1.1.zip拖放到模拟器上。 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. 单击“确定”,然后通过从终端或命令提示符运行adb reboot
来重新启动设备。Drag and drop the second file gapps-*-signed.zip and repeat the same steps as above. 拖放第二个文件gapps - * - signed.zip并重复上述相同的步骤。 Run
adb reboot
again and, once rebooted, Google Apps will be in the emulator. 再次运行adb reboot
,重新启动后,Google Apps将进入模拟器。At this point 'Google Apps Services' will crash frequently with the following message
google play services has stopped working
. 此时,“Google Apps服务”会经常崩溃,并显示以下消息,google play services has stopped working
。 Open Google Play. 打开Google Play。 After providing your account details, open Google Play and update your installed Google Apps. 提供帐户详细信息后,请打开Google Play并更新已安装的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 ). 这似乎使Google Play意识到您有一个旧的Google Play服务,并会要求您更新(在我的情况下, 更新Google Hangouts需要新版Google Play服务 )。 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. “Google Play服务”应用似乎没有出现 - 您无法搜索它。 You should then see an offer to update Google Play Services. 然后,您应该会看到更新Google Play服务的优惠。 Once the new Google Play Services is installed you will now have stable, working access to Google Play 安装新的Google Play服务后,您现在可以稳定,有效地访问Google Play
#3楼
You could do this simply by: 你可以这样做:
- Download the ARM Translation Installer v1.1(ARMTI) 下载ARM Translation Installer v1.1(ARMTI)
- Download the Google Apps for your Android version 4.4, 4.3, 4.2, or 4.1 for instance 例如,下载适用于Android版本4.4,4.3,4.2或4.1的Google Apps
- Drag and drop the ARMTI to the HomeScreen of your emulator, and confirm all 将ARMTI拖放到模拟器的HomeScreen中,然后确认全部
- Reboot your emulator 重新启动您的模拟器
- Drag & Drop the correct Google App version to your HomeScreen 将正确的Google App版本拖放到HomeScreen
- Reboot your emulator 重新启动您的模拟器
- JOB DONE. 任务完成。
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
#4楼
With adb, you can install GApps and ARM Support zips without a drag & drop. 使用adb,您可以在不拖放的情况下安装GApps和ARM Support拉链。 emuking from XDA Developers has instructions for it: 来自XDA开发者的emuking有它的说明:
I used 4.2.2, which is acceptable for my testing purposes. 我使用了4.2.2,这对于我的测试目的是可以接受的。 I then extracted both zip's "/system/..." folders to a folder on my desktop. 然后我将zip的“/ system / ...”文件夹解压缩到桌面上的文件夹中。 In cmd prompt I used the following commands (step 1 is optional and for verification that adb is working): 在cmd提示符中,我使用了以下命令(步骤1是可选的,用于验证adb是否正常工作):
- adb devices adb设备
- adb remount adb remount
- adb push "C:\\Users\\John\\Desktop\\GenyF_cked\\system" /system 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. 您必须将“adb push”行中的文件夹名称更改为实际提取两个zip文件的位置。 After doing it, I recommend you to "adb reboot" the device. 完成后,我建议你“adb reboot”设备。
#5楼
For Genymotion "Lollipop Preview - Nexus 5" virtual device 对于Genymotion“Lollipop Preview - Nexus 5”虚拟设备
Same steps mentioned in @KingyBobo and @anp8850 answers, but: @KingyBobo和@ anp8850答案中提到的步骤相同,但是:
Download the correct GApps for Android 5.0: Google Apps for Android 5.0 ( https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip) 下载适用于Android 5.0的正确GApps:适用于Android 5.0的Google Apps( https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip)
Note that Google+ shows lot of errors before updated. 请注意,Google+会在更新前显示大量错误。
#6楼
- Download ARM Translation v1.1 and flash it by dragging and dropping over the emulator. 下载ARM Translation v1.1并通过在模拟器上拖放来刷新它。 Then reboot the emulator. 然后重启模拟器。
- 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. 转到Open GApps ,选择x86架构,Android版本的模拟器和变体(nano足够,其他应用程序可以从Play商店安装)和下载zip存档。 Drag and drop this archive to the emulator and flash it. 将此存档拖放到模拟器并将其闪烁。 Reboot the emulator. 重新启动模拟器。