项目在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
- 更新:2024-11-15 14:41
- 阅读:440
Hbuilder X 4.32 alpha 安装鸿蒙工程依赖失败
yzznDeveloper (作者)
谢谢,实测能成功了,按着步骤是删除了unpackage里边的debug目录和harmony-configs目录,重新执行运行到鸿蒙,然后将unpackage\debug\app-harmony-2f573459里边的AppScope目录、build-profile.json5和oh-package.json5拷贝进harmony-configs目录下,配置一下证书就可以了,entry目录只是新建了一个空目录
可能是 harmony-configs 里面的文件所包含的内容与新版本不完全兼容,建议先完全删除 harmony-configs 和 unpackage 两个目录,重新运行,再根据需要逐步在 harmony-configs 里面添加必要的内容,注意不要使用旧的 harmony-configs 里面的文件,如果需要文件样本可以在新生成的 unpackage\debug\app-harmony-2f573459 里面找到。
梁飞鸿
感谢啊,试了之后终于能跑起来了
2024-11-27 16:53
回鹘
你好,你说的unipackage是运行生成的dist文件吗?
2024-12-02 10:01