草庐IT

mergeRule

全部标签

Unable to merge Config.json files. verify and then add ‘mergeRule‘ in the HAP

UnabletomergeConfig.jsonfiles.Thevalue'ReqPermissions'ohos.permission.WRITE_USER_STORAGE'conflictswiththevalue':reason'ofasubtagintheHARfile.Pleaseverifyandthenadd'mergeRule'intheHAP.解决办法:假如 有两个模块module  base 和entry,entry依懒了base,那么只需要在entry模块的config.json里增加mergeRule报的哪个权限,就在哪个权限里加比如上面报的是ohos.permiss