标签:
首先下载两个软件包
1.下载SDK:http://dl.google.com/android/installer_r24.0.2-windows.exe
如果浏览器不能访问,
将上面的地址复制到 迅雷上面(新建下载任务)即可下载,大概80多M的样子。
2.JDK的下载:http://docs.oracle.com/javase/8/docs/
下载你所使用系统对应的JDK包
首先安装JDK
然后安装SDK
启动SDk Manager
在最右下角显示log可以看到:
Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml
Fetched Add-ons List successfully
Fetching URL: https://dl-ssl.google.com/android/repository/repository-8.xml
Done loading packages.
Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-2.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-8.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-8.xml, reason: HttpHostConnect Connection to https://dl-ssl.google.com refused
Done loading packages.
好像是因为不能访问google
解决方案如下:
解决国内访问Google服务器的困难:
1.启动 Android SDK Manager ;
2.打开主界面,依次选择「Tools」、「Options…」,弹出『Android SDK Manager – Settings』窗口;
3.在『Android SDK Manager – Settings』窗口中,
在「HTTP Proxy Server」和「HTTP Proxy Port」输入框内填入mirrors.neusoft.edu.cn和80,并且选中「Force https://… sources to be fetched using http://…」复选框;
4.设置完成后单击「Close」按钮关闭『Android SDK Manager – Settings』窗口返回到主界面;
5.依次选择「Packages」、「Reload」。
标签:
原文地址:http://blog.csdn.net/oimchuan/article/details/43907239