资料来原:
http://www.chenruixuan.com/archives/479.html (DelphiXE8 更新SDK)
http://www.dfwlt.com/forum.php?mod=viewthread&tid=1852 (DelphiXE8 设置SDK)
问题现象:
新安装的电脑,一直用的是XE7,今天想安XE8了,就安装XE8了。
新建工程编译Android项目时,提示更新SDK失败。
提示如下:
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服务器的困难。
问题处理:
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」。
6.最重要的最后一步是下载好SDK后,要用DELPHI XE指定你想使用的SDK包。记住了,必须指定,不指定包,等于没下载。
7.下载的SDK路径,在下载工具的上方,需要仔细看(SDK Path就是)。