標籤:
資料來原:
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」。
Android問題-DelphiXE8安裝後編譯Android提示SDK無法更新問題