Toolchains:3.2.3.6 SDK. Sdk download failed.多次尝试仍然失败,打开设置也无法成功。
DevEco Studio
多次尝试仍然失败,打开设置也无法成功。
/usr/local/bin/node /Users/gordon/.hvigor/project_caches/6814633c86740aa078b8f8df08d06256/workspace/node_modules/@ohos/hvigor/bin/hvigor.js --sync -p product=default --no-daemon
> hvigor Downloading sdk components [toolchains] of API9...
at /Users/gordon/Library/Huawei/Sdk
The SDK license agreement is not accepted.
Detail: Go to Tools > SDK Manager > SDK > HarmonyOS, download the Toolchains:3.2.3.6 SDK, and accept the license agreement. Open SDK Manager
> hvigor ERROR: Sdk download failed.
> hvigor ERROR: BUILD FAILED in 8 s 927 ms
Process finished with exit code 0
解决办法:
解决办法,发生这个错误很大的可能性是人在国外。如果你没有找到这个文件,那就多等一等。或者尝试重启电脑
在 C:\Users\username\AppData\Roaming\Huawei\DevEcoStudio3.0\options 路径下(MacOS路径为/Users/username/Library/Application Support/Huawei/DevEcoStudio3.0/options),打开 country.region.xml ,修改countryregion name为“CN”。
然后到SDK那里就见到提示勾选的ToolChains。勾选上再sycn就好了