xiaoliang 发表于 2025-3-30 15:39:00

OpenHarmony应用安装失败 错误码:9568293 失败原因:MSG\_ERR\_INSTALL\_CHECK\_SYSCAP\_FAILED 类分析

1.错误码:9568293 失败原因:MSG_ERR_INSTALL_CHECK_SYSCAP_FAILED 类分析

安装报错信息:C:\Users\Administrator>hdc install -p D:\backup\n017036\Desktop\xxx.hapApp install path:D:\backup\n017036\Desktop\xxx.hap, queuesize:0, msg:error: failed to install bundle. code:9568293 message:AppMod finish
日志开关:

hilog -Q pidoffhilog -b Dhilog -p off
日志打印过滤关键字:

hilog | grep -i syscap
日志打印:

01-09 23:49:43.729 2957 3401 D C01120/BundleMgrService: check hap syscaps start.01-09 23:49:43.729 2957 3401 D C01120/BundleMgrService: Parse sysCaps from /data/service/el1/public/bms/bundle_manager_service/security_stream_install/1736437779194/17364377761/b0ac394bc.hap01-09 23:49:43.740 2957 3401 D C01120/BundleMgrService: Parse sysCaps str success01-09 23:49:43.741 2957 3401 D C01120/BundleMgrService: check syscap(SystemCapability.ArkUI.ArkUI.Full)01-09 23:49:43.741 2957 3401 D C01120/BundleMgrService: check syscap(SystemCapability.ArkUI.ArkUI.Napi)01-09 23:49:43.741 2957 3401 D C01120/BundleMgrService: check syscap(SystemCapability.ArkUI.ArkUI.Lite)01-09 23:49:43.742 2957 3401 E C02c0b/BEGET: Failed get paramName.
01-09 23:49:43.742 2957 3401 E C01120/BundleMgrService: check syscap failed which SystemCapability.ArkUI.ArkUI.Lite is not exsit

01-09 23:49:43.742 2957 3401 E C01120/BundleMgrService: hap syscap check failed 851971501-09 23:49:43.742 2957 3401 D C01120/BundleMgrService: result transformed is 9568293, 01-09 23:49:43.841 3385 3389 I C01120/BundleTool: on finished result is 9568293, 01-09 23:49:43.841 3385 3385 I C01120/BundleTool: message:
原因:当前开发板不支持SystemCapability.ArkUI.ArkUI.Lite能力。

check syscap failed which SystemCapability.ArkUI.ArkUI.Lite is not exsit
解决方案:

OpenHarmony-4.0-Release分支的arkui_ace_engine仓的bundle.json中增加SystemCapability.ArkUI.ArkUI.Lite“syscap”: [“SystemCapability.ArkUI.ArkUI.Full”],改为“syscap”: [“SystemCapability.ArkUI.ArkUI.Full”,“SystemCapability.ArkUI.ArkUI.Lite”],重新编译版本即可。
也可以直接修改以下三个文件替换到开发板支持。

路径如下:./system/etc/syscap.json:./system/etc/param/syscap.para./system/etc/SystemCapability.json
页: [1]
查看完整版本: OpenHarmony应用安装失败 错误码:9568293 失败原因:MSG\_ERR\_INSTALL\_CHECK\_SYSCAP\_FAILED 类分析