当前位置:网站首页>华为游戏初始化init失败,返回错误码907135000
华为游戏初始化init失败,返回错误码907135000
2022-07-02 07:16:00 【华为开发者论坛】
问题描述
用android studio 集成华为游戏服务SDK后,测试游戏时初始化init失败,报错statusCode 907135000,我在官方开发指导文档网站上搜索该错误码:
该错误码表示传入的参数错误。
官方错误码文档链接:
https://developer.huawei.com/consumer/cn/doc/development/HMSCore-Guides/commonerror-0000001059816656
问题解决
我联系了华为技术支持(https://developer.huawei.com/consumer/cn/support/feedback可工单咨询),对方告诉我:
如果使用Android Studio方式集成HMS SDK的游戏服务,出现此异常,要检查agconnect-services.json文件中的appId是否正确。agconnect-services.json文件的下载与配置,参考此文档:https://developer.huawei.com/consumer/cn/doc/development/HMSCore-Guides/integrate-as-sdk-0000001050435953
如果是用eclipse方式接入的,出现此异常,可以检查AndroidManifest文件中appId配置是否正确,按照这个格式配置,注意不要有空格。
<meta-data
android:name="com.huawei.hms.client.appid"
<!-- value的值“xxx”用实际申请的应用ID替换,来源于应用详情。-->
android:value="appid=xxx">
</meta-data>
或者参考https://developer.huawei.com/consumer/cn/doc/development/HMSCore-Guides/integrate-eclipse-sdk-0000001050309122去添加当前应用的AppGallery Connect配置文件。
我是Android Studio方式集成的,直接跑的华为官方提供的demo,也没放agconnect-services.json文件,导致报错了,于是我重新从AGC后台下载了该文件,并放在工程根目录下后,重新打包测试,初始化成功,问题解决。
如果你们也是直接跑demo,或者直接复制其他工程的代码使用的,可以参考下我这个例子自行检查。
边栏推荐
猜你喜欢
stm32和電機開發(上比特系統)
Flutter——Canvas自定义曲线图
2.hacking-lab脚本关[详细writeup]
sqoop创建job出现的一系列问题解决方法
Open the encrypted SQLite method with sqlcipher
Dialogue Wu Gang: why do I believe in the rise of "big country brands"?
Flutter环境配置保姆级教程,让doctor一绿到底
4.随机变量
[TS] 1368 seconds understand typescript generic tool types!
Internet News: Tencent conference application market was officially launched; Soul went to Hong Kong to submit the listing application
随机推荐
[visual studio] every time you open a script of unity3d, a new vs2017 will be automatically reopened
Open the encrypted SQLite method with sqlcipher
PCL Eigen介绍及简单使用
C#中索引器
UVM - configuration mechanism
[SUCTF2018]followme
SQOOP 1.4.6 INSTALL
[unity3d] nested use layout group to make scroll view with dynamic sub object height
PCL之K-d树与八叉树
使用Windbg静态分析dump文件(实战经验总结)
How to get the password of cpolar?
JS settimeout() and interview questions
PCL之滤波
12.进程同步与信号量
01-spooldir
UWA报告使用小技巧,你get了吗?(第四弹)
对话吴纲:我为什么笃信“大国品牌”的崛起?
学习open62541 --- [66] UA_String的生成方法
PCL 投影点云
MySQL keyword