Java 如何在 6.0 Genymotion 设备上安装 Google Play 服务?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/33517612/
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
How to install Google Play Services on 6.0 Genymotion device?
提问by Ivan V
How to install Google Play Services on 6.0 Genymotion device?
如何在 6.0 Genymotion 设备上安装 Google Play 服务?
For other versions thisanswer works, but not for 6.0
对于其他版本,此答案有效,但不适用于 6.0
EDIT:
编辑:
I've tried to use 6.0 Gapps from thissource, but all of them failed to flash the emulator.
我曾尝试使用此来源的6.0 Gapps ,但它们都无法刷新模拟器。
采纳答案by glborges
Ivan, I found the solution hereand followed the steps from the user @sinistance and it worked for me using the Nexus 5X Preview API 23.
伊万,我在这里找到了解决方案,并按照用户@sinistance 的步骤操作,它使用 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
你用的是什么图像?我正在使用预览 nexus 5x 图像。这是步骤:
- 刷入 Genymotion-ARM-Translation_v1.1.zip 然后重启。
- 闪光间隙-L-4-21-15.zip。
- 登录您的谷歌帐户。
- 闪存 benzo-gapps-M-20151011-signed-chroma-r3.zip 然后重新启动。
就这样
You can find all the files in the link above! I hope it works for you!
您可以在上面的链接中找到所有文件!我希望这个对你有用!
Regards
问候
回答by Pranav Patel
For enable Google play service in genymotion, as per answer you mentioned in your question you need ARM and Gapps.
要在 genymotion 中启用 Google Play 服务,根据您在问题中提到的答案,您需要 ARM 和 Gapps。
So, Download gapps for Android Marshmallow from hereand follow this answer.
回答by Libin Thomas
For enable Google play service in genymotion marshmallow version
用于在 genymotion 棉花糖版本中启用 Google Play 服务
Download and install Install ARM Translation from here : http://filetrip.net/dl?4SUOrdcMRvAfter installation reboot your device (Just close and restart )
从这里下载并安装安装 ARM 翻译:http: //filetrip.net/dl?4SUOrdcMRv安装后重启您的设备(只需关闭并重新启动)
After restart Download the gapps/5.1/gapps-L-4-21-15.zip flash from : http://mirror31.downloadandroidrom.com/download/gapps/5.1/gapps-L-4-21-15.zip?token=432826691
重启后从以下位置下载gapps/5.1/gapps-L-4-21-15.zip flash:http://mirror31.downloadandroidrom.com/download/gapps/5.1/gapps-L-4-21-15.zip ?令牌=432826691
After installation . reboot the device and update yourgoogle play service and google.
安装后。重新启动设备并更新您的谷歌播放服务和谷歌。
回答by Richard LIANG
On Samsung Galaxy S6 - 6.0.0 - 1440x2560:
在三星 Galaxy S6 - 6.0.0 - 1440x2560 上:
- Flash Genymotion-ARM-Translation_v1.1
- Flash open_gapps-x86-6.0-pico-20160524.zip
- Flash Genymotion-ARM-Translation_v1.1
- Flash open_gapps-x86-6.0-pico-20160524.zip
Please give it a try.
请试一试。
回答by Tong Chen
If Google Play Services on Android 6.0 crash everytime, you can try do the same things in this sequence. Maybe it will work.
如果 Android 6.0 上的 Google Play 服务每次都崩溃,您可以尝试按此顺序执行相同的操作。也许它会起作用。
Here is what I did:
这是我所做的:
- Install a latest Genymotion (version 2.6.0 in my case). Make sure the previous old (preview) Android 6.0 images are removed(Genymotion -> Settings -> Misc -> Clear cache).
- Add a new virtualdevice, select Google Nexus 5X and Android 6.0 image. It should download a new image from Genymotion website.Start created Google Nexus 5X - 6.0.0 - API 23 - 1080x1920 virtual device.
- Flash Genymotion-ARM-Translation_v1.1.zip (drag&drop the zip file to virtual device window) and then restart the virtual device.
- Flash gapps-L-4-21-15.zip and restart the virtual device again. Now add Google account in the virtual device via Settings -> Accounts -> Add account. Do not start Google Play! Ignore any crashes in sign in process.
- Flash benzo-gapps-M-20151011-signed-chroma-r3.zip and restart the virtual device. Open Google Play in virtual device,update all installed applications.
- Start Google Now with long touch on home button to force dialog with request to update Google Play Services. Update Google Play Services. Now the device is prepared with working Google Play and Google Play Services.
- 安装最新的 Genymotion(在我的例子中是 2.6.0 版)。确保删除以前的旧(预览)Android 6.0 图像(Genymotion -> 设置 -> 其他 -> 清除缓存)。
- 添加新的虚拟设备,选择 Google Nexus 5X 和 Android 6.0 映像。它应该从 Genymotion 网站下载一个新图像。开始创建 Google Nexus 5X - 6.0.0 - API 23 - 1080x1920 虚拟设备。
- Flash Genymotion-ARM-Translation_v1.1.zip(将zip文件拖放到虚拟设备窗口)然后重启虚拟设备。
- 刷入 gapps-L-4-21-15.zip 并再次重启虚拟设备。现在通过设置 -> 帐户 -> 添加帐户在虚拟设备中添加 Google 帐户。不要启动 Google Play!忽略登录过程中的任何崩溃。
- 刷入 benzo-gapps-M-20151011-signed-chroma-r3.zip 并重启虚拟设备。在虚拟设备中打开 Google Play,更新所有已安装的应用程序。
- 长按主页按钮启动 Google Now 以强制对话以请求更新 Google Play 服务。更新 Google Play 服务。现在设备已准备好运行 Google Play 和 Google Play 服务。
回答by imho
For me it worked just to install a package (in my case the full) for x86 and Android Version 6.0 from http://opengapps.org/by dragging the downloaded zip-file to the machine. A restart was suggested and done
对我来说,它只是通过将下载的 zip 文件拖到机器上来从http://opengapps.org/为 x86 和 Android 6.0 版安装一个包(在我的情况下是完整的)。建议重新启动并完成
Maybe some Apps won't work but you don't have to do anything else. I hope I could help you with that answer.
也许某些应用程序将无法运行,但您无需执行任何其他操作。我希望我能帮助你回答这个问题。
回答by Harryson
Since Genymotion 2.7.2 and above follow these steps.
从 Genymotion 2.7.2 及更高版本开始,请遵循以下步骤。
https://www.genymotion.com/faq/#google-play-services
https://www.genymotion.com/faq/#google-play-services
- Visit opengapps.org
- Select x86 as platform
- Choose the Android version corresponding to your virtual device
- Select nano as variant
- Drag & Drop the zip installer in new Genymotion virtual device
- Follow the pop-up instructions
- 访问 opengapps.org
- 选择 x86 作为平台
- 选择与您的虚拟设备对应的 Android 版本
- 选择 nano 作为变体
- 将 zip 安装程序拖放到新的 Genymotion 虚拟设备中
- 按照弹出的说明进行操作