Visual Studio Emulator for Android - Install Gapps (Google Play Services)(适用于 Android 的 Visual Studio 模拟器 - 安装 Gapps(Google Play 服务))
问题描述
我正在使用带有 Android Studio 的新 VS Android 模拟器:
I'm using the new VS Android Emulator with Android Studio:
https://www.visualstudio.com/en-us/features/msft-android-emulator-vs.aspx
它没有安装 Google Play 服务...所以我按照本指南进行安装:
It doesn't have Google Play Services installed... so I'm following this guide to install:
https://university.xamarin.com/resources/how-to-install-google-play-on-android-emulator
我已经下载了正确的 Gapps 文件(就我而言):
I've downloaded the proper Gapps file (in my case):
http://www.devfiles.co/download/7m2VdVjQ/gapps-kk-20140105-signed.zip
现在我已经将 ZIP 文件拖放到模拟器上……它只是停留在复制文件"处……为了安装 Gapps,我还需要在这里做些什么吗?这种安装"通常需要多长时间?
Now I've dragged and dropped the ZIP file onto the emulator... and it's just stalled at "copying file"... Is there anything else I need to be doing here in order to get Gapps installed? How long does this "install" usually take?
推荐答案
我昨天自己尝试了一下,遇到了同样的问题.显然,没有任何拖放功能起作用.所以这就是我为解决这个问题所做的:
I was trying it out yesterday myself and had the same problem. Apparently, non of the drag and drop functionality worked. So this, is what I did to resolve the issue:
- 使用模拟器的附加工具(小 >> 图标)并转到 SD 卡选项卡.
- 在您的计算机上选择一个文件夹以与虚拟 SD 卡同步.
从 SD 卡中拉取
,这将在所选文件夹上创建一个文件夹结构.- 现在将 Gapps 填充复制到下载"文件夹.
推送到 SD 卡
.这需要一点时间,然后将 zip 文件复制到您的模拟器.- 运行命令提示符,然后转到 Android SDK 位置中的
sdkplatform-tools
并运行adb devices
. - 如果您在列表中看到您的模拟器,请跳至第 9 步.
- 如果您没有看到模拟器,请运行以下命令:
adb connect
您可以在模拟器中找到模拟器 ip,转到设置 -> 关于手机 -> 状态和 IP 部分.:5555 - 下一次运行,
adb shell
.这将提示您进入 android 模拟器. - 确认 gapps 文件存在:
ls/sdcard/Download
- 现在运行,
install_zip.sh/sdcard/Download/<flashablezip>.zip
这应该会开始刷机过程.
- Use the Additional Tools (small >> icon) for the emulator and go to the SD Card tab.
- Select a folder on your computer to sync with the virtual SD card.
Pull from SD card
, which will create a folder structure on the selected folder.- Now copy the Gapps fill to the 'Download' folder.
Push to SD card
. This will take a little while, and copy the zip file to your emulator.- Run a commmand prompt, and go to
sdkplatform-tools
in your Android SDK location and runadb devices
. - If you see the your emulator in the list, then skip to step 9.
- If you do not see emulator, run the following:
adb connect <emulator ip>:5555
You can find the emulator ip, from within the emulator, go to Settings -> About Phone -> Status and IP section. - Next run,
adb shell
. This will give you a prompt to the android emulator. - Confirm the gapps file is there:
ls /sdcard/Download
- Now run,
install_zip.sh /sdcard/Download/<flashablezip>.zip
This should begin the flashing process.
希望这有助于解决问题.
Hope this helps in resolving the issue.
这篇关于适用于 Android 的 Visual Studio 模拟器 - 安装 Gapps(Google Play 服务)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:适用于 Android 的 Visual Studio 模拟器 - 安装 Gapps(Google Play 服务)
基础教程推荐
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01
- android 应用程序已发布,但在 google play 中找不到 2022-01-01
- 如何在 UIImageView 中异步加载图像? 2022-01-01
- Android:对话框关闭而不调用关闭 2022-01-01
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01