当前位置: 首页 > news >正文

OpenHarmony 4.1版本应用升级到5.0版本问题记录及解决方案

目录

1. ERROR: ArkTS:ERROR File: E:/Hap/applications_contacts-OpenHarmony-5.0.0-Release/entry/src/main/ets/Application/MyAbilityStage.ts:33:9 No overload matches this call.  Overload 1 of 4, '(slot: NotificationSlot): Promise', gave the following error.    Type 'SlotType.SOCIAL_COMMUNICATION' is not assignable to type 'SlotType'.  Overload 2 of 4, '(type: SlotType): Promise', gave the following error.    Argument of type '{ type: notification.SlotType; level: notification.SlotLevel; desc: string; lockscreenVisibility: number; }' is not assignable to parameter of type 'SlotType'.

2 ERROR: ArkTS:ERROR File: E:/Hap/applications_contacts-OpenHarmony-5.0.0-Release/entry/src/main/ets/util/StringFormatUtil.ets:40:27 This API is used only in FA Mode, but the current Mode is Stage.

3 ERROR: ArkTS:ERROR File: E:/Hap/applications_contacts-OpenHarmony-5.0.0-Release/feature/call/src/main/ets/missedcall/MissedCallNotifier.ets:189:9 Type 'import("F:\\huawei\\openharmony\\12\\ets\\api\\@ohos.notificationManager").default.ContentType' is not assignable to type 'import("F:/huawei/openharmony/12/ets/api/@ohos.notification").default.ContentType'.  Property 'NOTIFICATION_CONTENT_SYSTEM_LIVE_VIEW' is missing in type 'import("F:/huawei/openharmony/12/ets/api/@ohos.notification").default.ContentType'.

4 ERROR: ArkTS:ERROR File: E:/Hap/applications_contacts-OpenHarmony-5.0.0-Release/feature/call/src/main/ets/missedcall/MissedCallNotifier.ets:199:7 Type 'SlotType.SOCIAL_COMMUNICATION' is not assignable to type 'SlotType'.

5 ERROR: ArkTS:ERROR File: E:/Hap/applications_contacts-OpenHarmony-5.0.0-Release/feature/call/src/main/ets/missedcall/MissedCallNotifier.ets:280:7 Type 'import("F:/huawei/openharmony/12/ets/api/@ohos.app.ability.wantAgent").default.OperationType' is not assignable to type 'import("F:/huawei/openharmony/12/ets/api/@ohos.wantAgent").default.OperationType'.

6.ERROR: ArkTS:ERROR File: E:/Hap/applications_contacts-OpenHarmony-5.0.0-Release/feature/contact/src/main/ets/repo/DAOperation.ets:33:33 This API is used only in FA Mode, but the current Mode is Stage.


相关文章:

  • vue开发中常用方法笔记
  • 在公司快速查看与固定内网IP地址的完整指南
  • 全链路解析:影刀RPA+Coze API自动化工作流实战指南
  • 2025电工杯A题数据-光伏电站发电功率预测数据 收集策略
  • Docker 与 Kubernetes 部署 RabbitMQ 集群(二)
  • docker初学
  • w~大模型~合集4
  • 【Linux系列】EVS 与 VBD 的对比
  • nvidia Thor U与qualcomm 8295 DMPIS算力测试对比
  • 用matlab提取abaqus odb文件中的节点信息
  • 谢飞机的Spring WebFlux面试之旅:从基础到深入
  • 服务接口鉴权与内部认证:自定义注解与AOP实现的企业级实践
  • 免杀一 线程加载
  • Excel 打开密码:守护数据安全的 “钥匙”
  • MySQL:备份还原数据库(mysqldump)
  • c# 解码 encodeURIComponent
  • RocketMQ 生产消费消息消息解析与重试机制详解
  • [GHCTF 2025]ret2libc1(NSSCTF)
  • 云蝠语音智能体——电话面试中的智能助手
  • 搭配前端食用
  • wp网站搬家教程/十大新媒体平台有哪些
  • wordpress免费主题 开源/网络推广优化服务
  • 简单的手机网站模板免费下载/app关键词优化
  • 网站后台内容管理/seo咨询
  • 旅游商业网站策划书/360竞价推广客服电话
  • 网站优化外包公司/鄂州seo