HarmonyOS 鸿蒙Next Linux环境下sdkmgr下载校验错误, size is incorrect
HarmonyOS 鸿蒙Next Linux环境下sdkmgr下载校验错误, size is incorrect
>sdkmgr install --sdk-directory="/opt/harmonyOS" java
Installing Java:3.0.0.5...
Install task started: Java 3.0.0.5
Downloading [https://update.dbankcdn.com/download/data/pub_13/HWHOTA_hota_900_9/e6/v3/N1zLX18STE6x7LXnkYokbw/java-linux-3.0.0.5-Release.zip](https://update.dbankcdn.com/download/data/pub_13/HWHOTA_hota_900_9/e6/v3/N1zLX18STE6x7LXnkYokbw/java-linux-3.0.0.5-Release.zip)
Install task failed: Java 3.0.0.5.
Install Java:3.0.0.5 fail!
Failed to download SDK, size is incorrect, expected is 28,477,430, actual is 29,443,567
Cause: The network is unstable. SDK package integrity check failed.
Solution:
1. Connect to a stable network and download the file again.
2. If the issue persists, choose Help > Show Log in Explorer to obtain logs, and then choose Help > Contact Support for technical assistance.
已经尝试更换过网络环境
更多关于HarmonyOS 鸿蒙Next Linux环境下sdkmgr下载校验错误, size is incorrect的实战教程也可以访问 https://www.itying.com/category-93-b0.html
之前维护中中,现在已经好了,您这边再重新下载试试!
更多关于HarmonyOS 鸿蒙Next Linux环境下sdkmgr下载校验错误, size is incorrect的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html
Installing JS:3.0.0.5…
Install task started: JS 3.0.0.5
Downloading https://update.dbankcdn.com/download/data/pub_13/HWHOTA_hota_900_9/e6/v3/N1zLX18STE6x7LXnkYokbw/js-linux-3.0.0.5-Release.zip…±/$%-+
Unzipping /opt/HarmonyOS/.temp/js/3.0.0.5/install/js-linux-3.0.0.5-Release.zip…
Installing JS dependencies…
Running ‘npm install’…
> ace-loader@1.0.11 postinstall
> node npm-install.js
[31m npm install filed: Error: Command failed: npm install
npm ERR! code ENOTFOUND
npm ERR! syscall getaddrinfo
npm ERR! errno ENOTFOUND
npm ERR! network request to [http://mirrors.tools.huawei.com/npm/yocto-queue/-/yocto-queue-0.1.0.tgz](http://mirrors.tools.huawei.com/npm/yocto-queue/-/yocto-queue-0.1.0.tgz) failed, reason: getaddrinfo ENOTFOUND mirrors.tools.huawei.com
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
新的问题,
请求地址不对吧,改一下npm的仓库配置!
在HarmonyOS鸿蒙Next的Linux环境下,使用sdkmgr
下载时遇到size is incorrect
校验错误,通常是由于下载的文件大小与预期不符。可能的原因包括网络问题导致文件下载不完整,或者服务器端文件更新但本地缓存未同步。可以尝试清理缓存后重新下载,或检查网络连接稳定性。确保使用的sdkmgr
版本与当前鸿蒙Next版本兼容,避免因版本不匹配引起的下载错误。如果问题持续,建议核查服务器状态或等待官方修复。