问题描述
执行SDK安装时出现错误,请协助检查问题原因。
./sdkmgr install xxx --sdk-directory="/opt/HarmonyOS/SDK" Failed to request url https://devecostudio-dre.op.hicloud.com/sdkmanager/v7/hos/getSdkList [ ]0% Failed to request the remote SDK. This may be caused by a network error. If your environment needs a proxy to access the Internet, check whether the --proxy and --no-proxy parameters are correctly set. If they are not set, check whether the http_proxy/HTTP_PROXY and no_proxy/NO_PROXY environment variables are correctly set. root@luckyclientbuild01-test3-ucscompute16-cloudvsp:~/command-line-tools/sdkmanager/bin#
解决方案
编译时建议先执行clean操作,以避免上次编译的产物影响新的编译。