启动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
2032浏览 • 1回复 待解决
HarmonyOS UIAbility启动失败
243浏览 • 1回复 待解决
UIAbility组件的启动模式
382浏览 • 1回复 待解决
使用ohpm发布tgz文件时报错
588浏览 • 1回复 待解决
UIAbility启动的过程是怎样的?
505浏览 • 1回复 待解决
使用featureAbility.getContext()时报错如下
394浏览 • 1回复 待解决
OLED 屏幕输出编译时报错问题
10412浏览 • 2回复 待解决
启动报错Error message
1852浏览 • 1回复 待解决
通过USB连接打印机打印小票时报错
247浏览 • 0回复 待解决
提问
该提问已有0人参与 ,帮助了0人