启动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", 
      } 
    ] 
  } 
}

参考链接

Stage模型配置文件

分享
微博
QQ
微信
回复
2024-01-31 22:42:32
相关问题
拉起UIAbility时报错16000050
241浏览 • 1回复 待解决
OLED 屏幕输出编译时报错问题
8545浏览 • 2回复 待解决
webview打开地址时报错 怎么回事啊?
3652浏览 • 1回复 待解决
启动报错Error message
58浏览 • 1回复 待解决
app启动crash报错Error message:MainPage:
48浏览 • 1回复 待解决