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

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

阅读 371
1 个回答

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

{ 
  "module": { 
    // ... 
    "abilities": [ 
      { 
        // ... 
        "startWindowIcon": "$media:startIcon", 
        "startWindowBackground": "$color:start_window_background", 
      } 
    ] 
  } 
}

参考链接:Stage模型配置文件

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题