当前位置:   article > 正文

Unable to merge Config.json files. verify and then add ‘mergeRule‘ in the HAP_unable to merge config.json files. the value 'reqp

unable to merge config.json files. the value 'reqpermissions'ohos.permission

Unable to merge Config.json files. The value 'ReqPermissions'ohos.permission.WRITE_USER_STORAGE' conflicts with the value ':reason' of a subtag in the HAR file. Please verify and then add 'mergeRule' in the HAP.

解决办法:

假如  有两个模块 module    base 和 entry,entry 依懒了 base,
那么只需要在 entry 模块的 config.json 里增加mergeRule
报的哪个权限,就在哪个权限里加
比如上面报的是ohos.permission.WRITE_USER_STORAGE权限有问题,就在它里面加
 

{
  "name": "ohos.permission.WRITE_USER_STORAGE",
  "reason": "$string:WRITE_USER_STORAGE_description",
  "mergeRule": {
    "remove": ["usedScene"],
    "replace": ["reason"]}
}

注意:把  其它 模块的 config.json 里的这个权限,甚至整个reqPermissions给删掉,只留 entry 就行


声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/219464
推荐阅读
相关标签
  

闽ICP备14008679号