适用于 Android 的 Visual Studio 模拟器 - 安装 Gapps(Google Play 服务)

Visual Studio Emulator for Android - Install Gapps (Google Play Services)(适用于 Android 的 Visual Studio 模拟器 - 安装 Gapps(Google Play 服务))

本文介绍了适用于 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:

  1. 使用模拟器的附加工具(小 >> 图标)并转到 SD 卡选项卡.
  2. 在您的计算机上选择一个文件夹以与虚拟 SD 卡同步.
  3. 从 SD 卡中拉取,这将在所选文件夹上创建一个文件夹结构.
  4. 现在将 Gapps 填充复制到下载"文件夹.
  5. 推送到 SD 卡.这需要一点时间,然后将 zip 文件复制到您的模拟器.
  6. 运行命令提示符,然后转到 Android SDK 位置中的 sdkplatform-tools 并运行 adb devices.
  7. 如果您在列表中看到您的模拟器,请跳至第 9 步.
  8. 如果您没有看到模拟器,请运行以下命令:adb connect :5555您可以在模拟器中找到模拟器 ip,转到设置 -> 关于手机 -> 状态和 IP 部分.
  9. 下一次运行,adb shell.这将提示您进入 android 模拟器.
  10. 确认 gapps 文件存在:ls/sdcard/Download
  11. 现在运行,install_zip.sh/sdcard/Download/<flashablezip>.zip这应该会开始刷机过程.
  1. Use the Additional Tools (small >> icon) for the emulator and go to the SD Card tab.
  2. Select a folder on your computer to sync with the virtual SD card.
  3. Pull from SD card, which will create a folder structure on the selected folder.
  4. Now copy the Gapps fill to the 'Download' folder.
  5. Push to SD card. This will take a little while, and copy the zip file to your emulator.
  6. Run a commmand prompt, and go to sdkplatform-tools in your Android SDK location and run adb devices.
  7. If you see the your emulator in the list, then skip to step 9.
  8. 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.
  9. Next run, adb shell. This will give you a prompt to the android emulator.
  10. Confirm the gapps file is there: ls /sdcard/Download
  11. 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 服务)

基础教程推荐