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

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.xdnf.cn/news/8284.html

相关文章:

  • 动态规划应用场景 + 代表题目清单(模板加上套路加上题单)
  • 手机IP地址更换的影响与操作指南
  • Leetcode 2792. 计算足够大的节点数
  • 储能电站:风光储一体化能源中心数字孪生
  • Vmware ubuntu22.04 虚拟机 连接Windows主机虚拟串口
  • 【Unity3D】Text组件中换行文本显示异常
  • 频湖脉决全文
  • spring.factories详解
  • ROS合集(七)SVIn2声呐模块分析
  • JVM 双亲委派模型
  • C++单例模式详解
  • 前端(小程序)学习笔记(CLASS 2):WXML模板语法与WXSS模板样式
  • 光电耦合器与数字容隔离器的“光速对话”
  • Java设计模式:探索编程背后的哲学
  • python定时删除指定索引
  • 谷歌浏览器调试python pygui程序
  • 国产化Word处理控件Spire.Doc教程:使用 Python 创建 Word 文档的详细指南
  • 企业级云原生爬虫架构与智能优化
  • LET 2025盛大开幕!数智工厂×智慧物流×机器人,一展get创新科技
  • VSCode 插件 GitLens 破解方法
  • 线程池介绍,分类,实现(工作原理,核心组成,拒绝策略),固态线程池的实现+详细解释(支持超时取消机制和不同的拒绝策略)
  • [性能优化] 数据库连接池(Connection Pooling)原理及其在Java/Python应用中的配置
  • 大模型高效微调方法综述:P-Tuning软提示与lora低秩微调附案例代码详解
  • 在 ABP VNext 中集成 OpenCvSharp:构建高可用图像灰度、压缩与格式转换服务
  • 自制操作系统day10叠加处理
  • 数据库系统概论(九)SQL连接查询语言超详细讲解(附带例题,表格详细讲解对比带你一步步掌握)
  • MCP 服务与 Agent 协同架构的理论基石:从分布式智能到生态化协作
  • OSI 深度安全防御体系架构深度剖析
  • Java转Go日记(五十六):gin 渲染
  • 可视化大屏实现全屏或非全屏