android - 使用 AGConnectServicesConfig 获取 appId 失败

标签 android huawei-mobile-services huawei-developers appgallery-connect huawei-map-kit

我对logcat中的这条消息有些疑惑:

E/HMSSDK_AGCUtils:使用 AGConnectServicesConfig 获取 appId 失败

由于在查看 Maps Kit map 时会显示此错误或消息,是否会在将来造成问题?
我已经尝试过以下方法:

  1. 在build.grade中没有应用agconnect插件
  2. 手动添加
<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/

相关文章:

android - 将对象从一个 Activity 传递到另一个 Activity

huawei-mobile-services - 如何更改华为应用市场中的开发者名称?

java - Android 操作系统中 DatePicker 中 setFirstDayOfWeek() 的 Harmony OS 替代方法是什么?

android-studio - HMS 工具包转换(G+H、HMS API 1st)库(xmsadapter)无法导入

java - 优化图片显示

java - 如何为不同的标签声明几个具有相同名称的样式属性?

android - 以编程方式设置永远在线的 VPN, "Admin does not own the profile"

android - 华为桌面设置SDK 23+如何授权?

oauth-2.0 - 缺少必需的参数 : client_id

android - 华为 map 没有响应 Offstage Flutter