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

标签 android unity-game-engine huawei-mobile-services

我在 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.

有人有解决办法吗?

最佳答案

根据文档,如果您使用 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.

根据我的经验 - 它只是游戏的“必备”。

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

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

关于android - Unity需要接入华为HMS SDK,包名必须以.HUAWEI结尾,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61832334/

相关文章:

memory - Unity 分析我的脚本的内存使用情况

android - 检查华为移动服务 (HMS) 的可用性

android - 用户通过滑动删除华为设备后在前台重新启动通知(如 Strava/Endomondo)

java - AsyncTask 更好的通信协议(protocol)

android - GridView 自动调整未显示完整图像

android - Material Design 向后兼容性

android - 删除多个 toast ?

c# - [C#]使用Physics.OverlapBox 检查地面

unity-game-engine - 当同一对象的 2 个实例发生碰撞时,如何仅销毁 1 个对象?

android - 使用 OpenCV 访问移动立体相机