点击运行,选择鸿蒙。
- 发布:2024-12-02 11:31
- 更新:2024-12-02 14:47
- 阅读:86
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10
HBuilderX类型: 正式
HBuilderX版本号: 4.36
手机系统: HarmonyOS NEXT
手机系统版本号: HarmonyOS NEXT Developer Preview
手机厂商: 华为
手机机型: mate60 pro
页面类型: vue
vue版本: vue3
打包方式: 云端
项目创建方式: HBuilderX
操作步骤:
预期结果:
希望正常运行
希望正常运行
实际结果:
报错。
报错。
8***@qq.com (作者)
按照你说的重新运行了下,上边的报错没了,又出现新的,鸿蒙原生引入的问题。
2024-12-02 15:17
8***@qq.com (作者)
> hvigor WARN: module 'uni_moduleshht_bluetooth' depends on another module 'uni_moduleshht_bluetooth'.This dependency will not be collected because of the potential issue of circular dependenciesbetween hsp/har modules.
> hvigor Finished :entry:clean... after 6 ms
> hvigor Finished :uni_moduleshht_bluetooth:clean... after 4 ms
> hvigor Finished :entry:default@PreBuild... after 142 ms
> hvigor Finished :uni_moduleshht_bluetooth:default@PreBuild... after 86 ms
> hvigor Finished :entry:default@GenerateMetadata... after 6 ms
> hvigor Finished :entry:default@PreCheckSyscap... after 1 ms
> hvigor Finished :entry:default@GeneratePkgContextInfo... after 1 ms
> hvigor Finished :entry:default@ProcessIntegratedHsp... after 2 ms
> hvigor Finished :uni_moduleshht_bluetooth:default@CreateHarBuildProfile... after 2 ms
> hvigor Finished :uni_moduleshht_bluetooth:default@ConfigureCmake... after 1 ms
> hvigor Finished :uni_moduleshht_bluetooth:default@MergeProfile... after 20 ms
> hvigor Finished :entry:default@SyscapTransform... after 2 ms
> hvigor Finished :entry:default@ProcessRouterMap... after 8 ms
> hvigor Finished :entry:default@CreateBuildProfile... after 4 ms
> hvigor Finished :uni_moduleshht_bluetooth:default@BuildNativeWithCmake... after 1 ms
> hvigor Finished :entry:default@MergeProfile... after 21 ms
> hvigor ERROR: Failed :entry:default@GenerateLoaderJson...
> hvigor ERROR: byteCodeHar not supported when useNormalizedOHMUrl is not true.
Detail: Please check useNormalizedOHMUrl in the project-level build-profile.json5 file.
> hvigor ERROR: BUILD FAILED in 2 s 648 ms
15:16:47.567 运行包制作失败
2024-12-02 15:17
DCloud_云服务_MAQ
回复 8***@qq.com: 根据这个报错信息,你可以尝试修改 harmony-configs/build-profile.json5 文件,把里面的 useNormalizedOHMUrl 属性值改为 false。
2024-12-02 16:58