如何创建使用 emui 实现的模拟器

How to create an emulator implemented with emui

我有一个依赖 google 服务的应用程序,为了让新的华为 phones 运行 我的应用程序,我做了太多的迁移。

不幸的是,由于缺少 HMS 核心,我无法在模拟器上测试我的应用程序,我创建了一个新的 Stock android 图像,我尝试安装 HMS 核心 APK,但应用程序无法安装为图片 ,

不幸的是cloud debugging由于服务太多,我没有服务。我需要逐步查看所有内容。任何解决方案都希望我购买没有 google 服务的新 phone?

如果您使用的是Push Kit、ML Kit、Scan Kit、In-App购买等不依赖华为手机的套件,可以下载HUAWEI AppGallery on a non-Huawei phone and then run your app. In this case, you will be automatically guided to download and install HMS Core (APK) on AppGallery. You can also use the adb command to manually install HMS Core (APK) and then run your app for testing. For details, please refer to EMUI Version-Dependent Features.

如果您正在使用依赖华为手机的套件,如FIDO、Map Kit、Health Kit,您可以使用Cloud Debugging调试应用程序。 (云调试无法一步步调试代码。)

使用云调试。

我们可以使用android模拟器之前,你需要下载最新的HMS Core APK安装到你的模拟器,所有HMS套件不支持。更好的是,您可以使用云调试或在您的 android 工作室中安装 Hms 插件使用云调试。

你可以试试HMS插件 转到文件-> 设置-> 插件并搜索 HMS 工具包并安装它。 访问文章HMS Toolkit - Automatic HMS SDK Integration了解有关HMS安装和使用的详细信息。

一旦你 select 调试并选择设备,你就可以从那里 select EMUI 版本。