joe 发表于 2022-5-17 09:52:22

Unknown host 'raw.githubusercontent.com'

win7环境:android studio开发时出现:Unknown host 'raw.githubusercontent.com'. You may need to adjust the proxy 。。。。。
1)打开https://www.ipaddress.com
2)查询raw.githubusercontent.com对应的ip地址,我选第一个ip地址:185.199.108.133
3) 打开C:\Windows\System32\drivers\etc目录
4)编辑hosts文件,在这个文件的最后加上:185.199.108.133 raw.githubusercontent.com
5)在android studio中重新build则OK
页: [1]
查看完整版本: Unknown host 'raw.githubusercontent.com'