.鸿蒙NEXT编译错误 The version "xxx" is invalid, reached retry limit or non retryable error encountered.
说明
在test_demo工程下新建libtest模块,编译产物的 libtest.har,放在test_demo/ibs中运行;
错误现象
har包的版本号定义
libtest/oh-package.json5:
{
"name": "libtest",
"version": "1.0.20241023.1707",
"description": "Please describe the basic information.",
"main": "Index.ets",
"author": "",
"license": "Apache-2.0",
"dependencies": {
"libtest.so": "file:./src/main/cpp/types/libtest"
}
}
假如版本定义: "1.0.20241023.1707"
"\"C:\Program Files\Huawei\DevEco Studio\tools\ohpm\bin\ohpm.bat\"" install --all --registry https://ohpm.openharmony.cn/ohpm/ --strict_ssl true
ohpm ERROR: Found exception: Error: The version "1.0.20241023.1707" of dependency "test@D:\ohos\sourcecode\test_demo_v1.0.0.har" is invalid, reached retry limit or non retryable error encountered.
ohpm ERROR: ERUNNING execute tasks failed, Error: The version "
鸿蒙NEXT编译错误及解决办法

最低0.47元/天 解锁文章
4806

被折叠的 条评论
为什么被折叠?



