9***@qq.com
9***@qq.com
  • 发布:2025-01-14 19:09
  • 更新:2025-01-14 19:09
  • 阅读:15

【报Bug】添加fcm的gradle插件打包报错

分类:5+ SDK

产品分类: 其他/5+ SDK

操作步骤:

使用上述配置打包

预期结果:

编译正常

实际结果:

编译报错

bug描述:

HbuilderX 4.36中 uts插件中配置
{
"minSdkVersion": "21",
"project": {
"plugins": [
"com.google.gms.google-services"
],
"dependencies": [
"com.google.gms:google-services:4.3.10"
],
"repositories": [
"maven { url 'https://maven.google.com' }"
]
},
"dependencies": [
"com.google.firebase:firebase-messaging:23.1.0"
]
}

增加了firebase的依赖和gradle插件就编译报错

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:mapReleaseSourceSetPaths'.

    Error while evaluating property 'extraGeneratedResDir' of task ':app:mapReleaseSourceSetPaths'.
    Failed to calculate the value of task ':app:mapReleaseSourceSetPaths' property 'extraGeneratedResDir'.
    Querying the mapped value of provider(java.util.Set) before task ':app:processReleaseGoogleServices' has completed is not supported

错误日志链接
https://app.liuyingyong.cn/build/errorLog/d6aa6710-d266-11ef-adb9-499613c0f5a5

2025-01-14 19:09 负责人:无 分享
已邀请:

要回复问题请先登录注册