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

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.


http://www.lryc.cn/news/2387128.html

相关文章:

  • std::initialzer_list 与花括号{}数据列表
  • 萤石云实际视频实时接入(生产环境)
  • QT中常用的类
  • Docker系列(四):容器操作全栈技术指南 --- 从入门到生产级管控
  • poppler_path 是用于 Python 库如 pdf2image 进行 PDF 转换时
  • 鸿蒙OSUniApp 开发的多图浏览器组件#三方框架 #Uniapp
  • MongoDB 错误处理与调试完全指南:从入门到精通
  • React从基础入门到高级实战:React 核心技术 - 表单处理与验证深度指南
  • 【C++】stack,queue和priority_queue(优先级队列)
  • ubuntu中上传项目至GitHub仓库教程
  • [Java实战]Spring Boot整合达梦数据库连接池配置(三十四)
  • windows 下用yolov5 训练模型 给到opencv 使用
  • Spark集群架构解析:核心组件与Standalone、YARN模式深度对比(AM,Container,Driver,Executor)
  • Linux Kernel调试:强大的printk(二)
  • Kafka Kraft模式集群 + ssl
  • [crxjs]自己创建一个浏览器插件
  • 类的设计模式——单例、工厂以及建造者模式
  • STM32之看门狗(IWDG)
  • PyTorch实现MLP信用评分模型全流程
  • 语音识别——文本转语音
  • 跟着华为去变革 ——读《常变与长青》有感
  • 图像分割技术的实现与比较分析
  • node.js配置变量
  • Ubuntu+Docker+内网穿透:保姆级教程实现安卓开发环境远程部署
  • 为什么需要清除浮动?清除浮动的方式有哪些?
  • 计算机网络学习20250526
  • ArkUI:鸿蒙应用响应式与组件化开发指南(一)
  • YOLOv11改进 | Neck篇 | 双向特征金字塔网络BiFPN助力YOLOv11有效涨点
  • C/C++的OpenCV 进行轮廓提取
  • 计算机网络总结(物理层,链路层)