开发环境:

DevEco Studio Next beta1
Openharmony SDK 12(5.0.0.68)
RK3568-DAYU200

编译成功,但打包到开发板时报错

1
2
3
4
The current device does not contain the following SysCap attributes in the rpcid.json file:
SystemCapability.Sercurity.xxx
...
Make sure the device supports all the SysCap attributes required for running the app

缓兵之计:

删除DevEco Studio的编译SDK中ets/api/define-device/default.json中相关栏

default.json可替换为其他设备类型.json

同理

ets/api/define-device-common

js/api/define-device

中的相关栏也要删除

根治:

相应的在编译烧录前在相同位置添加相关栏