目錄

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上面的運行結果首先是報錯如下:

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. ————————————————

版權聲明:本文為博主原創文章,遵循 CC 4.0 BY-SA 版權協議,轉載請附上原文出處鏈接和本聲明。

全文鏈接:https://blog.csdn.net/gongjdde/article/details/145451034