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

Oh3.2项目升级到Oh5.0(鸿蒙Next)具体踩坑记录(一)

目录

1.自动修复部分

Cause: The project structure and configuration require an upgrade. Solution: 1. Use Migrate Assistant to auto-upgrade the project structure and configuration. 2. Manually upgrade the project structure and configuration by following the instructions.

Cause: The project configuration requires an upgrade. Solution: 1. Auto-fix the configuration. 2. Manually upgrade the project structure and configuration by following the instructions.

2.修改配置文件

Incorrect settings found in the build-profile.json5 file. The value of compileSdkVersion must be greater than or equal to 10 for the current project. If an earlier API version is required for development, follow the instructions in the guide.

3.权限相关处理

The reason and usedScene attributes are mandatory for user_grant permissions.

Duplicate permission names detected under "requestPermissions": "ohos.permission.READ_MEDIA","ohos.permission.WRITE_MEDIA". Remove them to make sure each name is unique.

4.字符串资源文件处理

> hvigor ERROR: Failed :entry:default@CompileResource...

> hvigor ERROR: Tools execution failed.

Error: cJSON_Parse failed, please check the JSON file.

at E:\workspace\OpenHarmonyProject\UIS7885_OH5.0_FCTtest\entry\src\main\resources\zh_CN\element\string.json

* Try the following:

> Check the JSON file and delete unnecessary commas (,).

> Check the JSON file to make sure the root bracket is {}

Detail: Please check the message from tools.

> More info: https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V13/ide-hvigor-faqs-V13#section5410192524610


1.自动修复部分

我们将3.2的项目放在5.0的sdk以及deveco studio next上面的运行结果首先是报错如下:

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

相关文章:

  • 【自动化办公】批量图片PDF自定义指定多个区域识别重命名,批量识别铁路货物运单区域内容改名,基于WPF和飞桨ocr深度学习模型的解决方案
  • Spring Boot篇
  • Unity3D学习笔记(二)
  • 个人毕业设计--基于HarmonyOS的旅行助手APP的设计与实现(挖坑)
  • 游戏引擎 Unity - Unity 打开项目、Unity Editor 添加简体中文语言包模块、Unity 项目设置为简体中文
  • python开发:爬虫示例——GET和POST请求处理
  • 开源数据分析工具 RapidMiner
  • Vue canvas画图画线例子,数据回显与隔离,点拖拽修改
  • Python实现CAN FD 通信(基于PCAN开发CAN FD测试工具)
  • LeetCode--347. 前 K 个高频元素/Golang中的堆(container/heap)
  • 关于大数据
  • 9-收纳的知识
  • 堆的实现——堆的应用(堆排序)
  • 机器学习6-全连接神经网络2
  • 基于 SpringBoot 的电影购票系统
  • C++SLT(三)——list
  • C++ Primer 算术运算符
  • 数据结构-堆和PriorityQueue
  • 【玩转 Postman 接口测试与开发2_017】第13章:在 Postman 中实现契约测试(Contract Testing)与 API 接口验证(下)
  • R语言 | 使用 ComplexHeatmap 绘制热图,分区并给对角线分区加黑边框
  • React图标库: 使用React Icons实现定制化图标效果
  • Python sider-ai-api库 — 访问Claude、llama、ChatGPT、gemini、o1等大模型API
  • DeepSeek、哪吒和数据库:厚积薄发的力量
  • DDD - 微服务架构模型_领域驱动设计(DDD)分层架构 vs 整洁架构(洋葱架构) vs 六边形架构(端口-适配器架构)
  • 第 1 天:UE5 C++ 开发环境搭建,全流程指南
  • 【华为OD-E卷 - 109 磁盘容量排序 100分(python、java、c++、js、c)】
  • 【大数据技术】编写Python代码实现词频统计(python+hadoop+mapreduce+yarn)
  • 5-Scene层级关系
  • JVM执行流程与架构(对应不同版本JDK)
  • 本地部署 DeepSeek-R1:简单易上手,AI 随时可用!