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

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.kler.cn/a/535793.html

相关文章:

  • Spring Boot 自动装配原理与优化实践
  • javaEE-6.网络原理-http
  • 98.2 AI量化开发:基于DeepSeek打造个人专属金融消息面-AI量化分析师(理论+全套Python代码)
  • 禅道社区版项目管理软件部署(记录篇)
  • creator 接入zendesk Unified SDK 组件样式报错解决方法
  • 数据分析系列--[11] RapidMiner,K-Means聚类分析(含数据集)
  • 如何打开vscode系统用户全局配置的settings.json
  • JS实现一个通用的循环填充数组的方法
  • React--》使用Toast UI Calendar实现可定制日历的技巧与实践
  • Vim跳转文件及文件行结束符EOL
  • A2DP/HFP音频蓝牙模块+玩具,开启儿童成长智能时代
  • 20250205确认荣品RK3566开发板在Android13下可以使用命令行reboot -p关机
  • java面试题-集合篇
  • 【C++】STL——list的使用与底层实现
  • 第二次连接k8s平台注意事项
  • 后端生成二维码
  • 单节锂电池外部供电自动切换的电路学习
  • Git 工作区、暂存区与本地仓库的关系详解
  • TCP | RFC793
  • Django基础篇(1)--介绍
  • IDEA 中集成 Maven,配置环境、创建以及导入项目
  • 如何规避反爬虫机制
  • springBoot开发步骤和知识点
  • 测试驱动开发(TDD)实践:从理论到实践
  • 前端面试项目总结——WebGL篇
  • javaEE-9.HTML入门