From 215f288425c63ffbc15d50fedbcc2fffa981a126 Mon Sep 17 00:00:00 2001 From: 13296578220 <542689970@qq.com> Date: Wed, 28 Aug 2024 16:52:58 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 13296578220 <542689970@qq.com> --- README.en.md | 5 ++++- README.md | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.en.md b/README.en.md index 114ad9ac67..5d38bd66ea 100644 --- a/README.en.md +++ b/README.en.md @@ -121,6 +121,9 @@ This repository is a compatible extension of Flutter SDK for the OpenHarmony pla | run | application run | flutter run [--local-engine=\] | | attach | debug mode | flutter attach | | screenshot | screenshot | flutter screenshot | +| pub | download dependency | flutter pub get | +| clean | clear dependency | flutter clean | +| cache| clear global cache data | flutter pub cache clean | Attachment: [Flutter third-party library adaptation plan](https://docs.qq.com/sheet/DVVJDWWt1V09zUFN2) @@ -210,7 +213,7 @@ Attachment: [Flutter third-party library adaptation plan](https://docs.qq.com/sh ``` 14. If `flutter pub cache clean` is executed normally, `flutter clean` will report an error. If update command is executed according to the error message, it has no effect。 - 1. Solution:To avoid this problem, comment out the configuration in the build.json5 file。 + 1. Solution:To avoid this problem, comment out the configuration in the build.json5 file: "modules":[{ //The first object of the array is reserved }, { //The rest of the objects need comments }] 2. Error message: ``` #Parse ohos module. json5 error: Exception: Can not found module.json5 at diff --git a/README.md b/README.md index 7f294dbd41..3500bf3003 100644 --- a/README.md +++ b/README.md @@ -119,6 +119,9 @@ Flutter SDK 仓库 | run | 应用运行 | flutter run [--local-engine=\<兼容ohos的engine产物路径\>] | | attach | 调试模式 | flutter attach | | screenshot | 截屏 | flutter screenshot | +| pub | 下载依赖 | flutter pub get | +| clean | 清除依赖 | flutter clean | +| cache| 清除全局缓存数据 | flutter pub cache clean | 附:[Flutter三方库适配计划](https://docs.qq.com/sheet/DVVJDWWt1V09zUFN2) @@ -210,7 +213,7 @@ Flutter SDK 仓库 ``` 14. 执行`flutter pub cache clean` 正常 执行`flutter clean` 报错,按照报错信息执行 update 命令也没有效果。 - 1. 解决方案:通过注释掉 build.json5 文件中的配置规避。 + 1. 解决方案:通过注释掉 build.json5 文件中的配置规避: "modules":[{ //数组第一个对象保留 }, { //其余对象注释掉 }] 2. 报错信息: ``` #Parse ohos module. json5 error: Exception: Can not found module.json5 at -- Gitee From 88d5885d96a9bdc93e777f1eb449961792bdce81 Mon Sep 17 00:00:00 2001 From: liuja <542689970@qq.com> Date: Thu, 29 Aug 2024 11:24:45 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liuja <542689970@qq.com> --- README.en.md | 4 ++-- README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.en.md b/README.en.md index 5d38bd66ea..e92a2a7f04 100644 --- a/README.en.md +++ b/README.en.md @@ -122,8 +122,8 @@ This repository is a compatible extension of Flutter SDK for the OpenHarmony pla | attach | debug mode | flutter attach | | screenshot | screenshot | flutter screenshot | | pub | download dependency | flutter pub get | -| clean | clear dependency | flutter clean | -| cache| clear global cache data | flutter pub cache clean | +| clean | clear project artifacts | flutter clean | +| cache | clear global cache data | flutter pub cache clean | Attachment: [Flutter third-party library adaptation plan](https://docs.qq.com/sheet/DVVJDWWt1V09zUFN2) diff --git a/README.md b/README.md index 3500bf3003..abc6a8dc67 100644 --- a/README.md +++ b/README.md @@ -119,9 +119,9 @@ Flutter SDK 仓库 | run | 应用运行 | flutter run [--local-engine=\<兼容ohos的engine产物路径\>] | | attach | 调试模式 | flutter attach | | screenshot | 截屏 | flutter screenshot | -| pub | 下载依赖 | flutter pub get | -| clean | 清除依赖 | flutter clean | -| cache| 清除全局缓存数据 | flutter pub cache clean | +| pub | 获取依赖 | flutter pub get | +| clean | 清除项目依赖 | flutter clean | +| cache | 清除全局缓存数据 | flutter pub cache clean | 附:[Flutter三方库适配计划](https://docs.qq.com/sheet/DVVJDWWt1V09zUFN2) -- Gitee