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

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

折騰:

【已解決】ADT中調試Android項目但是無法打開對應的AVD即沒有彈出對應的Android虛擬機

期間,

遇到問題:

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.參考:

Android sdk manager doesnt download packages

去強制設置爲https:

android sdk manager tools options

others force https sources to be fetched using http

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

Fetching URL: http://software.intel.com/sites/landingpage/android/addon.xml 
Validate XML: http://software.intel.com/sites/landingpage/android/addon.xml 
Parse XML:    http://software.intel.com/sites/landingpage/android/addon.xml 
  Found Intel Atom x86 System Image, Android API 10, revision 1 
  Found Intel x86 Emulator Accelerator (HAXM), revision 2 
Fetching URL: https://dl-ssl.google.com/android/repository/sys-img.xml

結果還是不行:

Failed to fetch URL https://dl-ssl.google.com/android/repository/sys-img.xml, reason: HttpHostConnect Connection to https://dl-ssl.google.com refused 
Fetching URL: http://www.mips.com/global/sdk-sys-img.xml

3.參考:

android 更新SDK問題reason: Connection to https://dl-ssl.google.com refused

去修改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.貼出截止目前的log:

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
Fetched Add-ons List successfully
Done loading packages.
Validate XML
Parse XML
Fetched Add-ons List successfully
  Found SDK Platform Android 1.1, API 2, revision 1 (Obsolete)
  Found SDK Platform Android 1.5, API 3, revision 4
  Found SDK Platform Android 1.6, API 4, revision 3
  Found SDK Platform Android 2.0, API 5, revision 1 (Obsolete)
  Found SDK Platform Android 2.0.1, API 6, revision 1 (Obsolete)
  Found SDK Platform Android 2.1, API 7, revision 3
  Found SDK Platform Android 2.2, API 8, revision 3
  Found SDK Platform Android 2.3.1, API 9, revision 2 (Obsolete)
  Found SDK Platform Android 2.3.3, API 10, revision 2
  Found SDK Platform Android 3.0, API 11, revision 2
  Found SDK Platform Android 3.1, API 12, revision 3
  Found SDK Platform Android 3.2, API 13, revision 1
  Found SDK Platform Android 4.0, API 14, revision 3
  Found SDK Platform Android 4.0.3, API 15, revision 3
  Found SDK Platform Android 4.1.2, API 16, revision 4
  Found SDK Platform Android 4.2.2, API 17, revision 2
  Found SDK Platform Android 4.3, API 18, revision 2
  Found SDK Platform Android 4.4, API 19, revision 1
  Found ARM EABI v7a System Image, Android API 14, revision 2
  Found ARM EABI v7a System Image, Android API 15, revision 2
  Found ARM EABI v7a System Image, Android API 16, revision 3
  Found ARM EABI v7a System Image, Android API 17, revision 2
  Found ARM EABI v7a System Image, Android API 18, revision 2
  Found ARM EABI v7a System Image, Android API 19, revision 1
  Found Samples for SDK API 7, revision 1
  Found Samples for SDK API 8, revision 1
  Found Samples for SDK API 9, revision 1 (Obsolete)
  Found Samples for SDK API 10, revision 1
  Found Samples for SDK API 11, revision 1
  Found Samples for SDK API 12, revision 1
  Found Samples for SDK API 13, revision 1
  Found Samples for SDK API 14, revision 2
  Found Samples for SDK API 15, revision 2
  Found Samples for SDK API 16, revision 1
  Found Samples for SDK API 17, revision 1
  Found Samples for SDK API 18, revision 1
  Found Samples for SDK API 19, revision 1
  Found Android SDK Platform-tools, revision 19
  Found Android SDK Build-tools, revision 17
  Found Android SDK Build-tools, revision 18.0.1
  Found Android SDK Build-tools, revision 18.1
  Found Android SDK Build-tools, revision 18.1.1
  Found Android SDK Build-tools, revision 19
  Found Android SDK Tools, revision 22.3
  Found Documentation for Android SDK, API 19, revision 1
  Found Sources for Android SDK, API 14, revision 1
  Found Sources for Android SDK, API 15, revision 2
  Found Sources for Android SDK, API 16, revision 2
  Found Sources for Android SDK, API 17, revision 1
  Found Sources for Android SDK, API 18, revision 1
  Found Sources for Android SDK, API 19, revision 1
  Found Google APIs, Android API 3, revision 3
  Found Google APIs, Android API 4, revision 2
  Found Google APIs, Android API 5, revision 1 (Obsolete)
  Found Google APIs, Android API 6, revision 1 (Obsolete)
  Found Google APIs, Android API 7, revision 1
  Found Google APIs, Android API 8, revision 2
  Found Google APIs, Android API 9, revision 2 (Obsolete)
  Found Google APIs, Android API 10, revision 2
  Found Google APIs, Android API 11, revision 1
  Found Google APIs, Android API 12, revision 1
  Found Google APIs, Android API 13, revision 1
  Found Google APIs, Android API 14, revision 2
  Found Google APIs, Android API 15, revision 2
  Found Google APIs, Android API 16, revision 3
  Found Google APIs, Android API 17, revision 3
  Found Google APIs, Android API 18, revision 3
  Found Google APIs, Android API 19, revision 1
  Found Google TV Addon, Android API 12, revision 2
  Found Google TV Addon, Android API 13, revision 1
  Found Android Support Library, revision 19
  Found Android Support Repository, revision 3
  Found Google Repository, revision 4
  Found Google Play Licensing Library, revision 2
  Found Google Play APK Expansion Library, revision 3
  Found Google Play services for Froyo, revision 12
  Found Google Play services, revision 13
  Found Google USB Driver, revision 8
  Found Google Play Billing Library, revision 5
  Found Google AdMob Ads SDK, revision 11
  Found Google Analytics App Tracking SDK, revision 3
  Found Google Web Driver, revision 2
  Found [Deprecated] Google Cloud Messaging for Android Library, revision 3
  Found Intel x86 Emulator Accelerator (HAXM), revision 3
  Found MIPS System Image, Android API 15, revision 1
  Found MIPS System Image, Android API 16, revision 4
  Found MIPS System Image, Android API 17, revision 1
  Found Intel x86 Atom System Image, Android API 10, revision 2
  Found Intel x86 Atom System Image, Android API 15, revision 1
  Found Intel x86 Atom System Image, Android API 16, revision 1
  Found Intel x86 Atom System Image, Android API 17, revision 1
  Found Intel x86 Atom System Image, Android API 18, revision 1
Done loading packages.
Preparing to install archives
Downloading Android SDK Platform-tools, revision 19
Installing Android SDK Platform-tools, revision 19
Stopping ADB server succeeded.
Installed Android SDK Platform-tools, revision 19
Downloading SDK Platform Android 4.3, API 18, revision 2
Installing SDK Platform Android 4.3, API 18, revision 2
Installed SDK Platform Android 4.3, API 18, revision 2
Downloading SDK Platform Android 4.1.2, API 16, revision 4
Installing SDK Platform Android 4.1.2, API 16, revision 4
Installed SDK Platform Android 4.1.2, API 16, revision 4
Downloading Intel x86 Atom System Image, Android API 17, revision 1
Installing Intel x86 Atom System Image, Android API 17, revision 1
Installed Intel x86 Atom System Image, Android API 17, revision 1
Downloading Android Support Library, revision 19
Installing Android Support Library, revision 19
Installed Android Support Library, revision 19
Downloading Google USB Driver, revision 8
Installing Google USB Driver, revision 8
Installed Google USB Driver, revision 8
Downloading Intel x86 Emulator Accelerator (HAXM), revision 3
Installing Intel x86 Emulator Accelerator (HAXM), revision 3
Installed Intel x86 Emulator Accelerator (HAXM), revision 3
Downloading Android SDK Tools, revision 22.3
Installing Android SDK Tools, revision 22.3
[post_tools_install.bat] Updating SDK Manager.exe
[post_tools_install.bat]         1 file(s) copied.
[post_tools_install.bat] Updating AVD Manager.exe
[post_tools_install.bat]         1 file(s) copied.
Installed Android SDK Tools, revision 22.3
Downloading Intel x86 Atom System Image, Android API 18, revision 1
Installing Intel x86 Atom System Image, Android API 18, revision 1
Installed Intel x86 Atom System Image, Android API 18, revision 1
Downloading Intel x86 Atom System Image, Android API 16, revision 1

覺得

Intel x86 Atom System Image, Android API 16

下載的太慢了,取消算了。。。。

cancel popup the android sdk and avd manager that you are currently using has been updated

然後接着重新去下載,結果速度果然從之前的35KB/s到現在更快的100多KB/s了。

6.最後,終於安裝完畢了:

install all x86 images done 1

install all x86 images done 2

 

【總結】

此處,是:

(1)沒有選擇那個:

Android SDK Manager -> Tools-> Force https:// … sources to be fetched using http://…

(2)給

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

中加了:

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

然後纔可以正常下載Android的各種包的,包括此處我想要下載的一堆的x86的image。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章