gpt4 book ai didi

c# - 如何在 6.0 Visual Studio 模拟器上安装 Google Play 服务?

转载 作者:太空宇宙 更新时间:2023-11-03 12:35:54 25 4
gpt4 key购买 nike

我已遵循提供的解决方案 by Rob Prouse here在运行 API 级别 22 的 Android 5.1.1 的 Visual Studio 模拟器上安装 Google Play 服务。这一切都运行良好,并且我的应用程序中的 map 成功运行,但是,我希望在 6.0 设备上运行。

Rob Prouse 解决方案:

1 - Download the correct GAPPS for the Android version from http://www.teamandroid.com/gapps/
2 - Use the Additional Tools (small >> icon) for the emulator and go to the SD Card tab.
3 - Select a folder on your computer to sync with the virtual SD card.
4 - Pull from SD card, which will create a folder structure on the selected folder.
5 - Now copy the Gapps fill to the ‘Download’ folder.
6 - Push to SD card. This will take a little while, and copy the zip file to your emulator.
7 - Run a commmand prompt, and go to sdk\platform-tools in your Android SDK location and run adb devices.
8 - If you see the your emulator in the list, then skip to step 10.
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.
10 - Next run, adb shell. This will give you a prompt to the android emulator.
11 - Confirm the gapps file is there: ls /sdcard/Download
12 - Now run, install_zip.sh /sdcard/Download/.zip This should begin the flashing process.
13 - Once the flashing is complete, restart the emulator.
14 - Once you restart, you may see errors with apps like Google+ trying to start up, ignore them for now.
15 - Sign into your Google account and upgrade all apps from Google Play.
16 - When you run your application that requires Google Play services, you may be prompted to upgrade

我尝试了 http://www.teamandroid.com/gapps/ 中的所有三个包, 但都没有用。
请注意,HDPI/MDPI/TINY: gapps-600-base-20151016-1-signed.zip 安装了 Play 商店,但它一直崩溃并且永远无法打开。
我尝试了 adb 命令和拖放解决方案。
有人能够将 google play 服务安装到 6.0 Visual Studio 模拟器中吗?

最佳答案

我最终关注了另一个关于模拟器的文档,它运行良好。对于遇到同样问题的任何人,请看一下这个: http://blog.ostebaronen.dk/2016/04/installing-gapps-in-visual-studio.html

来自源的解决方案:

Prerequisites
1. Install a Marshmallow image in the Visual Studio Emulator for Android tools (can be opened through Tools > Visual Studio Emulator for Android in Visual Studio)
2. Download gapps-L-4-21-15.zip
3. Download benzo-gapps-M-20151011-signed-chroma-r3.zip

Installing
1. Start the Marshmallow image
2. Drag the gapps-L-4-21-15.zip onto the Emulator after it has booted. It will prompt you to install the zip and shutdown the device after that.
3. After having install the gapps boot up your Emulator again, it will show a dialog about optimizing newly installed packages.
4. Go to Settings > Accounts and Add a Google Account. Ignore all crashes.
5. After adding the Account, install the benzo-gapps-M-20151011-signed-chroma-r3.zip by dragging it onto your Emulator, like in step 2.
6. After rebooting after step 5. is done, you should now have working Play Services and Play Store on your Visual Studio Emulator for Android.

关于c# - 如何在 6.0 Visual Studio 模拟器上安装 Google Play 服务?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41042689/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com