Unity需要接入华为HMS SDK,包名必须以.HUAWEI结尾

Unity requires access to Huawei HMS SDK, package name must end with .HUAWEI

我在 Unity 中收到一个错误,阻止我继续开发。

3.[Description]:We found that your game contains a third-party account system,in-app paid games can not contain third-party account system in addition to Huawei account; [Suggestion]:Please delete other account systems except Huawei account,game account system needs to be connected to Huawei account,it requires access to Huawei HMS SDK, package name must end with .HUAWEI,guidance link:https://developer.huawei.com/consumer/cn/hms [Test Environment]: Wi-Fi connection,SD card, nova2 with Android 7.0+ EMUI5.1,mate9 pro with Android 8.0+ EMUI8.0,Mate20 with Android 10 + EMUI 10.0.0,Multilingual environment.

有人有解决办法吗?

您使用的是华为SDK,无法使用其他第三方账号系统。选择游戏中的其他账号系统或华为SDK。

https://developer.huawei.com/consumer/en/hms

参考官方指南https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/appgallerykit-devguide-game,使用华为帐号(通过华为帐号服务)和通过华为IAP进行应用内购买是发布游戏到华为应用市场的必备条件。

更改包名称是进行适当的货币化、促销和 koint 操作的另一个必要条件。 https://developer.huawei.com/consumer/en/doc/30216

根据文档,如果您使用的是 IAP 服务 - 您必须将后缀 .huawei 添加到您的应用程序包名称中 -> 即.. com.example.mygame.huawei

查看文档:https://developer.huawei.com/consumer/en/doc/development/HMS-Guides/panorama-galleryconnect

它说:

2 . Creating an App

Create an app by referring to Creating a Project and Creating an App in the Project. Set the following parameters as described:

● Package type: APK (Android app)

● Device: Mobile phone

● Package name: Must be the same as the APK name. For apps using the HMS SDK for in-app payment, the package name must end with .HUAWEI or .huawei. Otherwise, your app will be rejected by the reviewer.

根据我的经验 - "must have" 仅适用于游戏。

一旦您在 AppGallery Connect 中设置(上传 apk/aab),就无法更改包名称。

唯一的方法是删除项目并创建一个新项目。

您的应用被审核员拒绝的原因有两个:

  1. 开发者应将 HUAWEI Account Kit 集成到应用中。
  2. 包名必须以.HUAWEI.huawei.
  3. 结尾

如果您的应用发布,包括中国大陆,华为帐号服务是必须的。 有关详细信息,请参阅 Development Guide for AppGalleryKit Game