在学习HarmonyOs过程中,开头就遇到一个配置问题:
Unable to download the HarmonyOS SDK. proxyHost should not be null when a proxy is specified
和
Cause: proxyHost should not be null when a proxy is specified
我是在MAC电脑上开发,这个问题的解决方法也比较简单,我只是把代理关掉了。具体操作如下:
1.打开终端输入
查看目录,找到.gradle隐藏文件
image.png
2.使用cd命令
查看目录中是否有
文件
image.png
3.使用vi命令
打开
image.png
4.输入
开始编辑,把它全部注释了
image.png