HarmonyOS 项目发布提示7014,是Profile权限选的不对么,但是权限只能选择两个,项目中还有其他,但是选不到

requestPermissions": [
{
  "name": "ohos.permission.INTERNET"
},
{
  "name": "ohos.permission.CAMERA",
"reason": "$string:camera_permissions_reason",
"usedScene": {
  "abilities": [
  "EntryAbility"
  ],
  "when":"inuse"
}
},
{
  "name": "ohos.permission.READ_MEDIA",
"reason": "$string:read_media_permissions_reason",
"usedScene": {
  "abilities": [
  "EntryAbility"
  ],
  "when":"inuse"
}
},
{
  "name": "ohos.permission.WRITE_MEDIA",
"reason": "$string:read_media_permissions_reason",
"usedScene": {
  "abilities": [
  "EntryAbility"
  ],
  "when":"inuse"
}
},
{
  "name": "ohos.permission.WRITE_CONTACTS",
"reason": "$string:write_contacts_permissions_reason",
"usedScene": {
  "abilities": [
  "EntryAbility"
  ],
  "when":"inuse"
}
},
{
  "name": "ohos.permission.READ_CONTACTS",
"reason": "$string:write_contacts_permissions_reason",
"usedScene": {
  "abilities": [
  "EntryAbility"
  ],
  "when":"inuse"
}
}
]
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.
  • 51.
  • 52.
  • 53.
  • 54.
  • 55.
HarmonyOS
2024-12-11 15:12:49
556浏览
收藏 0
回答 1
回答 1
按赞同
/
按时间
zxjiu

软件包内配置的权限与Profile申请的权限不一致。可以参考下面的链接 https://developer.huawei.com/consumer/cn/doc/app/agc-help-harmonyoserror-0000001651912985#section9225124218158如应用/元服务需要使用ACL的方式申请的权限: 请提供APP ID发送到agconnect@huawei.com,申请开通“受限ACL权限(HarmonyOS API9及以上)”配置项后,在此配置项中申请权限。申请profile 参考如下链接 https://developer.huawei.com/consumer/cn/doc/app/agc-help-harmonyos-debugapp-manual-0000001177608893#section1774717395304

分享
微博
QQ
微信
回复
2024-12-11 15:57:50
相关问题
HarmonyOS 关于两个权限区别
1211浏览 • 1回复 待解决