HarmonyOS 鸿蒙Next [ArkRuntime Log] Importing shared package is not supported in the Previewer
HarmonyOS 鸿蒙Next [ArkRuntime Log] Importing shared package is not supported in the Previewer
HarmonyOS世界demo预览提示Importing shared package is not supported in the Previewer.
在A module引入B module时,需要将B由动态改为静态类型,可以这样做:
1:module.json5文件 type值改为har
2:hvigorfile.ts文件,system值改为harTasks
更多关于HarmonyOS 鸿蒙Next [ArkRuntime Log] Importing shared package is not supported in the Previewer的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html
在HarmonyOS鸿蒙Next的ArkRuntime日志中,“Importing shared package is not supported in the Previewer” 表示在预览器中不支持导入共享包。共享包通常用于在多个模块或应用之间共享代码或资源。预览器是用于在开发过程中实时查看应用界面的工具,但其功能有限,不支持某些高级特性,如共享包的导入。此问题通常会在开发过程中遇到,尤其是在使用共享包进行模块化开发时。开发者需要在实际设备或模拟器上进行测试,以验证共享包的功能。