启动UIAbility时报错:must have required property 'startWindowIcon'

​启动UIAbility时报错:must have required property 'startWindowIcon'

HarmonyOS
2024-01-30 17:17:49
浏览
收藏 0
回答 1
回答 1
按赞同
/
按时间
libra_r

UIAbility配置中缺少startWindowIcon属性配置,需要在module.json5中abilities中配置startWindowIcon。

{ 
  "module": { 
    // ... 
    "abilities": [ 
      { 
        // ... 
        "startWindowIcon": "$media:startIcon", 
        "startWindowBackground": "$color:start_window_background", 
      } 
    ] 
  } 
}
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.

参考链接

Stage模型配置文件

分享
微博
QQ
微信
回复
2024-01-31 22:42:32
相关问题
拉起UIAbility时报错16000050
3440浏览 • 1回复 待解决
HarmonyOS 启动rn项目时报错
1048浏览 • 1回复 待解决
HarmonyOS UIAbility启动失败
1156浏览 • 1回复 待解决
UIAbility组件的启动模式
1376浏览 • 1回复 待解决
HarmonyOS UIAbility 如何启动 RNAbility
962浏览 • 1回复 待解决
HarmonyOS 运行HmosWorld时报错
1083浏览 • 1回复 待解决
HarmonyOS 应用发布时报错
765浏览 • 1回复 待解决