AndroidStudio或IDEA中连接github失败:Can't login: Connect to api.github.com:443
来源:互联网 发布:汛情数据统计 编辑:程序博客网 时间:2024/06/05 05:54
一般情况下,在AndroidStudio中连接github,输入账号和密码,点击Test按钮,会连接成功。
有时候会出现如下错误:
Can’t login: Connect to api.github.com:443 [api.github.com/208.78.70.16] failed: Connection refused: connect
出现该错误是本地hosts文件中配置不正确导致的。
打开hosts文件:C:\Windows\System32\drivers\etc\hosts
查看hosts中是否包含208.78.70.16这个ip地址,如果有,把该ip地址注释掉即可,在最前面添加#即添加注释成功,如#208.78.70.16。
保存退出,再次点击Test按钮连接github,如果hosts中配置正确,应该是可以成功连接到github的。如下图:
2 0
- AndroidStudio或IDEA中连接github失败:Can't login: Connect to api.github.com:443
- android 上传本地项目到github --Can't finish GitHub sharing process Failed to connect to github.com port 443
- github unable to access 'https://github.com/...: Failed to connect to github.com port 443‘
- 解决github unable to access 'https://github.com/...: Failed to connect to github.com port 443
- github unable to access 'https://github.com/...: Failed to connect to github.com port 443‘
- github unable to access 'https://github.com/...: Failed to connect to github.com port 443‘
- mysql中连接失败2003(Can't connect to server on 'localhost'(10038))错误解决办法
- Github 错误合集:Failed connect to github.com:8080 || Failed connect to github.com:443; No error
- fatal:unbale to connect to github.com
- 关于关于ssh -T git@github.com连接GitHub失败,以及Permission denied (publickey)问题
- SSH连接GitHub出现 ssh: connect to host github.com port 22: Connection refused解决方法
- github连接报"ssh: connect to host github.com port 22: Connection timed out"错误
- SSH连接GitHub提示ssh: connect to host github.com port 22: Bad file number
- Android studio配置github时Can't login
- svn连接报错 Can't connect to host '*.*.*.*': 由于连接方在一段时间后没有正确答复或连接的主机没有响应,连接尝试失败。
- eclipse中的应用提交到github时:Can’t connect to any repository: not authorized
- 解决 Failed connect to github.com:8087
- Failed connect to github.com:xxxx 解决办法
- 用keras创建拟合网络解决回归问题Regression
- 移动应用APP架构文档
- EXCEL导入解析
- 界面之下:还原真实的 MVC、MVP、MVVM 模式
- 剑指Offer:打印1到最大的N位数
- AndroidStudio或IDEA中连接github失败:Can't login: Connect to api.github.com:443
- Unity协程(Coroutine)原理深入剖析
- 基于JAVA的黄金数据接口调用代码实例
- 3Sum Closest
- 实现页面登录后仍然跳回当前页面
- 对于结构化异常处理(SEH)的进一步探索
- HTTP响应头信息和请求头信息详解
- 03 Struts2入门案例
- java线程