android SDK 更新

Ubuntu 64位系统下 eclipse运行报错:Failed to get the adb version: Cannot run program

终端中执行命令:sudo apt-get install ia32-libs

提示下载70M左右的文件,确定即可。

Ubuntu系统的Hosts只需修改/etc/hosts文件,在目录中还有一个hosts.conf文件,刚开始还以为只需要修改这个就可以了,结果发现是需要修改hosts。修改完之后要重启网络。
具体过程如下:
1、修改hosts
sudo gedit /etc/hosts
2、添加解析记录( . )
完整案例:127.0.0.1 localhost.localdomain localhost
简洁记录:127.0.0.1 localhost
3、保存后重启网络
sudo /etc/init.d/networking restart

Failed to fectch URl https://dl-ssl.google.com/android/repository/addons_list.xml, reason: Connection to https://dl-ssl.google.com refused
解决办法来源于:code.google.com

  • 用notepad打开C:\WINDOWS\system32\drivers\etc 中的hosts文件
  • 在最后一行添加74.125.237.1 dl-ssl.google.com
  • 成功解决问题。

tools/android update sdk -u

猜你喜欢

转载自329716228.iteye.com/blog/1675542