【已解決】ADT中通過Android SDK Manager去安裝x86的image時無法下載
折騰:
期間,
遇到問題:
ADT中Android SDK Manager無法下載x86的image
Downloading SDK Platform Android 4.1.2, API 16, revision 3 |
如圖:
【解決過程】
1.參考:
去強制設定為https:
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:
然後其會自動重新獲取list,才看到一堆可供選擇的項的:
4.重新去選擇x86的image,然後看看是否可以下載了。
結果,卻發現,又找不到x86的image了。。。
又重啟了ADT,重新開啟SDK Manager,才終於能看到x86的image了:
最終,終於可以下載x86的image了:
注:
此處,沒有選擇那個Force https:// … sources to be fetched using http://…
然後加上之前C:\Windows\System32\drivers\etc\hosts中加了:
?1 2 |
#
download android sdk from google fuck cn
74.125.237.1
dl-ssl.google.com
|
然後才可以正常下載東西的:
5.貼