ubuntu下无法更新android sdk
16lz
2021-12-04
安装完Eclipse和ADT插件,却发现无法更新SDK,显示为:
Fetching https://dl-ssl.google.com/android/repository/addons_list-1.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to https://dl-ssl.google.com refused
Fetched Add-ons List successfully
Fetching URL: https://dl-ssl.google.com/android/repository/repository-6.xml
Eclipse输出错误reason: Connection to https://dl-ssl.google.com refused
最大可能就是我们身在长城之内,伟大的天朝啊。解决办法:
输入命令:sudo gedit /etc/hosts/
在文件最后添加以下信息:
74.125.237.1 dl-ssl.google.com
保存,重启eclipse就OK了
windows系统中hosts文件的位置为:C:\Windows\System32\drivers\etc ,找到该文件并已文本形式打开,添加上面一句话,保存之后关闭,重启Eclipse打开Android SDK Manager,ok!
更多相关文章
- eclipse ADT在线安装 https://dl-ssl.google.com/android/eclips
- mono for android 获取手机照片或拍照并裁剪保存
- android button 上添加图片
- and 使用以及添加一个自己的mime type在ContactsContract
- Android之使用ContentResolver对通信录中的数据进行简单操作
- android4.0创建AVD后,打开虚拟机黑屏问题解决
- Android之从Browser中打开本地的应用程序&微信检测是否有对应app
- android 打开各种文件(setDataAndType)
- android listview 设置点击效果selector