OpenHarmony开发者论坛
标题:
启动UIAbility时报错:must have required property 'startWindowIcon'
[打印本页]
作者:
xiagengwen
时间:
2023-8-28 19:04
标题:
启动UIAbility时报错:must have required property 'startWindowIcon'
[md]【问题描述】
复制别人的代码到IDE运行,启动UIAbility时报错:must have required property 'startWindowIcon',报错如图,如何解决?.png")
【运行环境】
硬件:rk3568; ROM: 3.2 Beta5; API 9
[/md]
作者:
西木鹿亚
时间:
2023-10-17 14:21
标题:
启动UIAbility时报错:must have required property 'startWindowIcon'
[md]UIAbility配置中缺少startWindowIcon属性配置,需要在module.json5中abilities中配置startWindowIcon。
```
{
"module": {
// do something
"abilities": [{
// do something
"startWindowIcon": "$media:space",
"startWindowBackground": "$color:white",
}]
}
}
```
参考资料:[Stage模型配置文件](
https://gitee.com/openharmony/do ... nfiguration-file.md
)
[/md]
欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/)
Powered by Discuz! X3.5