x***@163.com
x***@163.com
  • 发布:2024-10-09 12:03
  • 更新:2024-10-10 10:15
  • 阅读:184

hbuilderx 4.29运行鸿蒙提示打包失败,请问该如何解决

分类:HBuilderX

正在编译中...
11:55:09.256 项目 logo_design 编译成功。
11:55:09.261 ready in 4501ms.
11:55:09.308 打包生成 .hap ...........
11:55:20.263 > hvigor WARN: The current module 'app-harmony@1.3.7' has dependency which is not installed at its oh-package.json5.
11:55:20.263 "@dcloudio/uni-app-harmony" is imported by "entry/src/main/ets/entryability/EntryAbility.ets", but could not be resolved – treating it as an external dependency.
11:55:20.264 > hvigor ERROR: ArkTS Compiler Error
1 WARN: ArkTS:WARN File: E:/hongmeng/logo_design/unpackage/debug/app-harmony@1.3.7/entry/src/main/ets/uni_modules/index.generated.ets:5:37
Usage of 'ESObject' type is restricted (arkts-limited-esobj)

2 WARN: ArkTS:WARN File: E:/hongmeng/logo_design/unpackage/debug/app-harmony@1.3.7/entry/src/main/ets/uni_modules/index.generated.ets:10:29
Usage of 'ESObject' type is restricted (arkts-limited-esobj)

3 WARN: ArkTS:WARN File: E:/hongmeng/logo_design/unpackage/debug/app-harmony@1.3.7/entry/src/main/ets/uni-app/components/ImagePreviewer.ets:157:36
Usage of 'ESObject' type is restricted (arkts-limited-esobj)

4 WARN: ArkTS:WARN File: E:/hongmeng/logo_design/unpackage/debug/app-harmony@1.3.7/entry/src/main/ets/uni-app/components/ImagePreviewer.ets:160:33
Usage of 'ESObject' type is restricted (arkts-limited-esobj)

5 WARN: ArkTS:WARN File: E:/hongmeng/logo_design/unpackage/debug/app-harmony@1.3.7/entry/src/main/ets/uni-app/components/ImagePreviewer.ets:305:26
'Function.bind' is not supported (arkts-no-func-bind)

6 WARN: ArkTS:WARN File: E:/hongmeng/logo_design/unpackage/debug/app-harmony@1.3.7/entry/src/main/ets/uni-app/components/ShowLoading.ets:50:74
'Function.bind' is not supported (arkts-no-func-bind)

7 WARN: ArkTS:WARN: For details about ArkTS syntax errors, see FAQs
8 WARN: ArkTS:WARN File: E:/hongmeng/logo_design/unpackage/debug/app-harmony@1.3.7/entry/src/main/ets/uni-app/components/WebView.ets:116:42
'PhotoSelectOptions' has been deprecated.

9 WARN: ArkTS:WARN File: E:/hongmeng/logo_design/unpackage/debug/app-harmony@1.3.7/entry/src/main/ets/uni-app/components/WebView.ets:138:45
'PhotoViewMIMETypes' has been deprecated.

10 WARN: ArkTS:WARN File: E:/hongmeng/logo_design/unpackage/debug/app-harmony@1.3.7/entry/src/main/ets/uni-app/components/WebView.ets:142:39
'PhotoViewPicker' has been deprecated.

11 WARN: ArkTS:WARN File: E:/hongmeng/logo_design/unpackage/debug/app-harmony@1.3.7/entry/src/main/ets/uni-app/components/WebView.ets:143:20
'select' has been deprecated.

12 WARN: ArkTS:WARN File: E:/hongmeng/logo_design/unpackage/debug/app-harmony@1.3.7/entry/src/main/ets/uni-app/components/Map.ets:22:16
The system capacity of this api 'mapCommon' is not supported on all devices

13 WARN: ArkTS:WARN File: E:/hongmeng/logo_design/unpackage/debug/app-harmony@1.3.7/entry/src/main/ets/uni-app/components/Map.ets:22:26
The system capacity of this api 'MapType' is not supported on all devices

14 WARN: ArkTS:WARN File: E:/hongmeng/logo_design/unpackage/debug/app-harmony@1.3.7/entry/src/main/ets/uni-app/components/Map.ets:22:34
The system capacity of this api 'STANDARD' is not supported on all devices

15 WARN: ArkTS:WARN File: E:/hongmeng/logo_design/unpackage/debug/app-harmony@1.3.7/entry/src/main/ets/uni-app/components/Map.ets:29:28
The system capacity of this api 'on' is not supported on all devices

16 WARN: ArkTS:WARN File: E:/hongmeng/logo_design/unpackage/debug/app-harmony@1.3.7/entry/src/main/ets/uni-app/components/Map.ets:39:5
The system capacity of this api 'MapComponent' is not supported on all devices

17 WARN: ArkTS:WARN File: E:/hongmeng/logo_design/unpackage/debug/app-harmony@1.3.7/entry/src/main/ets/uni-app/components/TabBar.ets:141:21
The regular property 'item!' cannot be assigned to the @ObjectLink property 'item'.
18 WARN: ArkTS:WARN File: E:/hongmeng/logo_design/unpackage/debug/app-harmony@1.3.7/entry/src/main/ets/uni-app/components/Picker.ets:13:9
The @Prop property 'range' cannot be an optional parameter.
19 WARN: ArkTS:WARN File: E:/hongmeng/logo_design/unpackage/debug/app-harmony@1.3.7/entry/src/main/ets/uni-app/components/Picker.ets:14:9
The @Prop property 'value' cannot be an optional parameter.
1 ERROR: ArkTS:ERROR File: E:/hongmeng/logo_design/unpackage/debug/app-harmony@1.3.7/entry/src/main/ets/entryability/EntryAbility.ets:9:31
Cannot find module '@dcloudio/uni-app-harmony' or its corresponding type declarations.

COMPILE RESULT:FAIL {ERROR:2 WARN:19}
11:55:20.265 打包失败

2024-10-09 12:03 负责人:无 分享
已邀请:
DCloud_云服务_MAQ

DCloud_云服务_MAQ

请问你使用的 HX 是什么版本?

  • x***@163.com (作者)

    这个问题已解决,但运行真机调试,提示

    > hvigor ERROR: ENOENT: no such file or directory, stat 'E:\hongmeng\logo_design\unpackage\debug\app-harmony@1.3.7\material'

    Detail: Signing failed. Reconfigure the signature or clear the E:\hongmeng\logo_design\unpackage\debug\app-harmony@1.3.7 folder and perform signing again.

    at E:\hongmeng\logo_design\unpackage\debug\app-harmony@1.3.7\build-profile.json5

    09:40:22.475 打包失败

    删除后重新运行也不行

    2024-10-10 09:42

  • DCloud_云服务_MAQ

    回复 x***@163.com: 请参考文档 https://uniapp.dcloud.net.cn/tutorial/run/run-app-harmony.html#signing ,里面有关于 material 的说明。

    2024-10-10 10:15

DCloud_云服务_MAQ

DCloud_云服务_MAQ

经确认,删除 unpackage 目录后重新【运行到鸿蒙】,问题消失。

要回复问题请先登录注册