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

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 负责人:无 分享
已邀请:
DCloud_云服务_MAQ

DCloud_云服务_MAQ

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

yzznDeveloper

yzznDeveloper (作者)

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

3***@qq.com

3***@qq.com

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

要回复问题请先登录注册