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