当我引用用于AppGallery集成的AppGallery的正式文档并打包并运行该应用程序时,运行日志中显示了一条错误消息:
I/com.huawei.agc.apms: failed to fetch remote config: client token request miss client id, please check whether the 'agconnect-services.json' is configured correctly.日志如下。请看日志
根据错误消息,我检查了演示项目的agconnect-services.json文件。发现JSON文件中的客户端ID是正确的。
发布于 2021-02-23 01:10:07
您需要将AppGallery连接插件添加到应用程序级别的 build.gradle文件中。
apply plugin: 'com.android.application'
apply plugin: 'com.huawei.agconnect'
apply plugin: 'com.huawei.agconnect.apms'有关如何集成AppGallery连接插件的详细信息,请参阅以下内容:
https://stackoverflow.com/questions/66315494
复制相似问题