ubuntu eclipse android搭建

1.eclipse加入android adt:

终端:sudo gedit /etc/hosts 

加入:

#for android
173.194.72.93 dl.google.com
173.194.72.93 dl-ssl.google.com


打开eclipse help-》install new software -》add-》 加入 name:adt ,location:https://dl-ssl.google.com/android/eclipse/ 就可以在线安装。


2.android sdk 更新

首先去网上找到 android sdk linux 版

将android sdk manager 中 tools -》options-》others下的第一项选中(force http://......)。

然后把原先加入的

#for android
173.194.72.93 dl.google.com
173.194.72.93 dl-ssl.google.com

删除加入:203.208.46.146 dl-ssl.google.com 就可以更新成功。

posted @ 2015-03-15 19:22  mengfanrong  阅读(183)  评论(0编辑  收藏  举报