且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

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

更新时间:2023-10-20 23:27:34

我昨天自己尝试了一下,遇到了同样的问题.显然,没有任何拖放功能起作用.所以这就是我为解决这个问题所做的:

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.