DevEco studio 安装程序到开发板时权限问题 install failed due to grant request permissions failed?

DAYU200 RK3568开发板分布式计算器demo,安装程序时报错!!!!!

05/17 14:20:59: Install Failed: error: failed to install bundle.
code:9568289
error: install failed due to grant request permissions failed.
View detailed instructions.
Error while Deploy Hap

module.json配置文件如下

{
  "module": {
    "name": "entry",
    "type": "entry",
    "srcEntry": "./ets/Application/MyAbilityStage.ts",
    "description": "$string:entry_desc",
    "mainElement": "MainAbility",
    "deviceTypes": [
      "default",
      "tablet"
    ],
    "deliveryWithInstall": true,
    "installationFree": false,
    "pages": "$profile:main_pages",
    "uiSyntax": "ets",
    "abilities": [
      {
        "name": "MainAbility",
        "srcEntrance": "./ets/MainAbility/MainAbility.ts",
        "description": "$string:MainAbility_desc",
        "icon": "$media:icon",
        "label": "$string:MainAbility_label",
        "startWindowIcon": "$media:icon",
        "startWindowBackground": "$color:white",
        "visible": true,
        "launchType": "singleton",
        "skills": [
          {
            "entities": [
              "entity.system.home"
            ],
            "actions": [
              "action.system.home"
            ]
          }
        ]
      }
    ],
    "requestPermissions": [
      {
        "name": "ohos.permission.DISTRIBUTED_DATASYNC",
        "reason": "$string:distributed_permission",
        "usedScene": {
          "abilities": [
            "MainAbility"
          ],
          "when": "inuse"
        }
      },
      {
        "name": "ohos.permission.ACCESS_SERVICE_DM"
      }
    ]
  }
}

网上查了一下,说是权限配置问题,具体该怎么配置啊,有大佬遇到过嘛

阅读 3.2k
2 个回答

弄好了,感谢大家,是SDK要配置成FullSDK,并且修改\Sdk\10\toolchains\libUnsgnedDebugProfileTemplate.jsonUnsgnedReleasedProfileTemplate.json的apl权限

应该是ACCESS_SERVICE_DM权限的问题,HarmonyOS官方应用文档没有看到该权限,删了试试呢?

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
logo
HarmonyOS
子站问答
访问
宣传栏