好好的项目,在公司的电脑上能够正常运行,使用自己的电脑倒入的时候遇到了两个问题:
1、error: failed to resolve xx库
经过自己不断的探索,也科学上网了,这几个库还是加载不下来,后面终于找到了解决办法,如下
image.png
不妨试一下。
2、还有一个问题就是手动把buildtool包给删了,发现已经科学上网了,但还是不能正确下载,提示 All packages are not available for download!the following package are not available
原因是:之前更改了电脑的hosts文件,里面有goole的站点, 域名对应着ip地址,过一段时间肯定就变了,所以下载不了sdk,吧hosts文件还原即可
mac查找hosts文件: 打开finder, 快捷键shift+command+g,输入/etc/hosts
原始hosts文件内容:
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost










网友评论