1. 程式人生 > >【已解決】ADT中通過Android SDK Manager去安裝x86的image時無法下載

【已解決】ADT中通過Android SDK Manager去安裝x86的image時無法下載

折騰:

期間,

遇到問題:

ADT中Android SDK Manager無法下載x86的image

Downloading SDK Platform Android 4.1.2, API 16, revision 3 
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 
Download interrupted: Connection to https://dl-ssl.google.com refused 
Skipping ‘Intel x86 Atom System Image, Android API 16, revision 1′; it depends on ‘SDK Platform Android 4.1.2, API 16, revision 3′ which was not installed. 
Done. Nothing was installed.

如圖:

intel x86 atom system image not installed for can not download

【解決過程】

1.參考:

去強制設定為https:

android sdk manager tools options

others force https sources to be fetched using http

2.然後再去試試,貌似就可以了:

結果還是不行:

3.參考:

去修改Hosts檔案:

C:\Windows\System32\drivers\etc\hosts

最後加上對應配置,為:

?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 # Copyright (c) 1993-2009 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol. # # For example: # #      102.54.94.97     rhino.acme.com          # source server #       38.25.63.10     x.acme.com              # x client host # localhost name resolution is handled within DNS itself. #   127.0.0.1       localhost #   ::1             localhost 74.125.31.120 ssl.gstatic.com # download android sdk from google fuck cn 74.125.237.1 dl-ssl.google.com

然後,重啟ADT,再去試試。

結果,重啟後,SDK Manager,都找不到哪些可以選擇的安裝的東西了。

後來還是自己摸索,清除了cache:

clear cache for manifest file of android

然後其會自動重新獲取list,才看到一堆可供選擇的項的:

then can reshow all related image

4.重新去選擇x86的image,然後看看是否可以下載了。

結果,卻發現,又找不到x86的image了。。。

又重啟了ADT,重新開啟SDK Manager,才終於能看到x86的image了:

can see x86 image for multiple version adt

最終,終於可以下載x86的image了:

finally can download x86 image from sdk manager

注:

此處,沒有選擇那個Force https:// … sources to be fetched using http://…

not select force https to http

然後加上之前C:\Windows\System32\drivers\etc\hosts中加了:

?
1 2 # download android sdk from google fuck cn 74.125.237.1 dl-ssl.google.com

然後才可以正常下載東西的:

downloading intelx8 atom system image android api 17 resision 1

5.貼