yzznDeveloper
yzznDeveloper
  • 发布:2024-11-11 16:53
  • 更新:2024-11-15 14:41
  • 阅读:403

Hbuilder X 4.32 alpha 安装鸿蒙工程依赖失败

分类:鸿蒙Next

项目在hbuilder X 4.29版本运行的时候,打包各方面都正常,因为一些方法hbuilder X 4.29版不支持,所以升级到测试版本4.32,然后就一直报安装工程依赖错误的问题
17:06:27.948 ohpm INFO: MetaDataFetcher fetching meta info of package '@dcloudio/uni-app-runtime' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '@ohos/hypium' from https://ohpm.openharmony.cn/ohpm/
ohpm ERROR: missing: @dcloudio/uts-harmony@D:\workspace\appPrj\harmonyPrj\unpackage\debug\app-harmony-2f573459\entry\src\main\ets\uts, required by @
ohpm ERROR: Found exception: Error: Fetch local folder package error, D:\workspace\appPrj\harmonyPrj\unpackage\debug\app-harmony-2f573459\entry\src\main\ets\uts does not exist., reached retry limit or non retryable error encountered.
ohpm ERROR: ERUNNING execute tasks failed, Error: Fetch local folder package error, D:\workspace\appPrj\harmonyPrj\unpackage\debug\app-harmony-2f573459\entry\src\main\ets\uts does not exist.
ohpm ERROR: missing: @dcloudio/uni-app-harmony@D:\workspace\appPrj\harmonyPrj\unpackage\debug\app-harmony-2f573459\entry\src\main\ets\uni-app-harmony, required by @
ohpm ERROR: Found exception: Error: Fetch local folder package error, D:\workspace\appPrj\harmonyPrj\unpackage\debug\app-harmony-2f573459\entry\src\main\ets\uni-app-harmony does not exist., reached retry limit or non retryable error encountered.
ohpm ERROR: missing: @dcloudio/uni-app-harmony-framework@D:\workspace\appPrj\harmonyPrj\unpackage\debug\app-harmony-2f573459\entry\src\main\resources\rawfile\uni-app, required by @
ohpm ERROR: Found exception: Error: Fetch local folder package error, D:\workspace\appPrj\harmonyPrj\unpackage\debug\app-harmony-2f573459\entry\src\main\resources\rawfile\uni-app does not exist., reached retry limit or non retryable error encountered.
ohpm ERROR: Install failed, detail: Error: Fetch local folder package error, D:\workspace\appPrj\harmonyPrj\unpackage\debug\app-harmony-2f573459\entry\src\main\ets\uts does not exist.
17:06:27.949 安装鸿蒙工程依赖失败

2024-11-11 16:53 负责人:无 分享
已邀请:
yzznDeveloper

yzznDeveloper (作者)

谢谢,实测能成功了,按着步骤是删除了unpackage里边的debug目录和harmony-configs目录,重新执行运行到鸿蒙,然后将unpackage\debug\app-harmony-2f573459里边的AppScope目录、build-profile.json5和oh-package.json5拷贝进harmony-configs目录下,配置一下证书就可以了,entry目录只是新建了一个空目录

  • 梁飞鸿

    感谢啊,试了之后终于能跑起来了

    2024-11-27 16:53

  • 回鹘

    你好,你说的unipackage是运行生成的dist文件吗?

    2024-12-02 10:01

DCloud_云服务_MAQ

DCloud_云服务_MAQ

可能是 harmony-configs 里面的文件所包含的内容与新版本不完全兼容,建议先完全删除 harmony-configs 和 unpackage 两个目录,重新运行,再根据需要逐步在 harmony-configs 里面添加必要的内容,注意不要使用旧的 harmony-configs 里面的文件,如果需要文件样本可以在新生成的 unpackage\debug\app-harmony-2f573459 里面找到。

3***@qq.com

3***@qq.com

照这步骤配置后,是能跑起来了,但一启动就闪退是为什么呢?是因为x86的原因嘛?

  • Adlaw

    一样有这个问题,您那边解决了吗?是X86的问题吗?

    2024-11-29 15:21

  • 1***@qq.com

    一样的问题,您那边解决了吗?

    2024-11-29 17:09

  • 2***@qq.com

    回复 Adlaw: 解决了嘛

    2024-11-29 17:11

  • Adlaw

    回复 2***@qq.com: 没有

    2024-11-29 17:13

  • 2***@qq.com

    回复 Adlaw:麻了代码跑不了我跑,交给两天后的自己了

    2024-11-29 17:39

  • git

    回复 2***@qq.com: 解决了吗?

    2024-12-12 21:45

  • git

    解决了吗?

    2024-12-12 21:46

  • git

    回复 2***@qq.com: 解决了吗?

    2024-12-12 21:46

  • git

    回复 1***@qq.com: 解决了吗?

    2024-12-12 21:46

要回复问题请先登录注册