From 6dfd45c99ff9cf9f9ed763b458573e43512511cb Mon Sep 17 00:00:00 2001 From: huangxiaoyao <976125628@qq.com> Date: Tue, 19 Nov 2024 15:41:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=B7=B7=E5=90=88=E5=BC=80?= =?UTF-8?q?=E5=8F=91=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: huangxiaoyao <976125628@qq.com> --- ...\346\267\267\345\220\210\345\274\200\345\217\221 module.md" | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git "a/ohos/docs/04_development/\345\246\202\344\275\225\344\275\277\347\224\250\346\267\267\345\220\210\345\274\200\345\217\221 module.md" "b/ohos/docs/04_development/\345\246\202\344\275\225\344\275\277\347\224\250\346\267\267\345\220\210\345\274\200\345\217\221 module.md" index 17b512af..09e2866d 100644 --- "a/ohos/docs/04_development/\345\246\202\344\275\225\344\275\277\347\224\250\346\267\267\345\220\210\345\274\200\345\217\221 module.md" +++ "b/ohos/docs/04_development/\345\246\202\344\275\225\344\275\277\347\224\250\346\267\267\345\220\210\345\274\200\345\217\221 module.md" @@ -44,7 +44,8 @@ cp -r my_flutter_module/.ohos/har/* MyApplication/har/ { // ... "dependencies": { - "flutter_module": "har/flutter_module.har" + // 如果工程级build-profile.json5文件的useNormalizedOHMUrl字段为true,则oh-package.json5中依赖的包使用的别名需要和依赖包的oh-package.json5的name保持一致,否则编译会报错 + "@ohos/flutter_module": "har/flutter_module.har" }, "overrides": { // 有冲突的依赖需要放到这里消除冲突 -- Gitee