我正在尝试为我的应用添加 G+H 解决方案。我已经从HMS工具包完成了转换。但转换后,它在 xms 导入上给了我错误,也给了我有关的错误
无法解析配置“:classpath”的所有工件。
Could not find com.huawei.agconnect:agconnect-apms-plugin:1.5.1.300. Searched in the following locations: - https://dl.google.com/dl/android/maven2/com/huawei/agconnect/agconnect-apms-plugin/1.5.1.300/agconnect-apms-plugin-1.5.1.300.pom - https://jcenter.bintray.com/com/huawei/agconnect/agconnect-apms-plugin/1.5.1.300/agconnect-apms-plugin-1.5.1.300.pom - https://developer.huawei.com/repo/com/huawei/agconnect/agconnect-apms-plugin/1.5.1.300/agconnect-apms-plugin-1.5.1.300.pom Required by: project :
可能的解决方案:
- 声明提供工件的存储库,请参阅 https://docs.gradle.org/current/userguide/declaring_repositories.html 处的文档
最佳答案
该问题可能是由于您的 APM 插件造成的。尝试将其更改为 classpath 'com.huawei.agconnect:agconnect-apms-plugin:1.4.1.306'
可能会解决您的问题。
详情请查看Docs .
关于huawei-mobile-services - 未解析引用: xms.华为Xms适配层不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66652570/