我对logcat中的这条消息有些疑惑:
E/HMSSDK_AGCUtils:使用 AGConnectServicesConfig 获取 appId 失败
由于在查看 Maps Kit map 时会显示此错误或消息,是否会在将来造成问题?
我已经尝试过以下方法:
- 在build.grade中没有应用agconnect插件
- 手动添加
<meta-data
android:name="com.huawei.hms.client.appid"
<!-- Replace xxx with the actual app ID, which can be obtained on the App information page. --> -->
android:value="appid=xxx">
</meta-data>
<!-- Replace xxx with the actual payment ID, which can be obtained from the app's IAP information. --> -->
<meta-data
android:name="com.huawei.hms.client.cpid"
android:value="cpid=xxx">
</meta-data>
但是消息一直弹出,还有什么要考虑的吗?此消息会影响 future 吗?
最佳答案
感谢您提供有关此问题的信息。
这个E/HMSSDK_AGCUtils: Get appId with AGConnectServicesConfig failed
是HMS框架无法从应用市场获取AppID时打印的,如果你的应用还没有上传到应用市场,显示这个信息是正常的.
框架随后会从agconnect-services.json
文件或manifest.xml中获取AppID,该信息仅供框架自身使用,不会影响Map Kit的使用。
关于android - 使用 AGConnectServicesConfig 获取 appId 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70029478/