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"
}
}
]
HarmonyOS
1天前
浏览
收藏 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
微信
回复
1天前
相关问题
HarmonyOS 发布证书能否调试项目
137浏览 • 1回复 待解决
使用Grid 组件实现座场景
1020浏览 • 1回复 待解决
编译一页面,实现座场景
714浏览 • 1回复 待解决
模拟器启动不了,创建时phone
7130浏览 • 3回复 已解决
HarmonyOS项目中json文件文本读取
867浏览 • 1回复 待解决