手工下載android sdk或者system images等等

 $ android update sdk -u -aandroid

獲得:
git

Fetching URL: https://dl-ssl.google.com/android/repository/repository-10.xmlapi

  Validate XML: 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 refusedfetch

  Parse XML:    https://dl-ssl.google.com/android/repository/repository-8.xmlgoogle

  Fetching URL: https://dl-ssl.google.com/android/repository/addon.xmlurl

  Validate XML: https://dl-ssl.google.com/android/repository/addon.xmlspa

  Parse XML:    https://dl-ssl.google.com/android/repository/addon.xml3d

  Fetching URL: https://dl-ssl.google.com/android/repository/addon-6.xmlcode

  Validate XML: https://dl-ssl.google.com/android/repository/addon-6.xml

  Parse XML:    https://dl-ssl.google.com/android/repository/addon-6.xml

  Fetching URL: https://dl-ssl.google.com/glass/gdk/addon.xml

  Validate XML: https://dl-ssl.google.com/glass/gdk/addon.xml

  Parse XML:    https://dl-ssl.google.com/glass/gdk/addon.xml

  Fetching URL: https://dl-ssl.google.com/android/repository/extras/intel/addon.xml

  Validate XML: https://dl-ssl.google.com/android/repository/extras/intel/addon.xml

  Parse XML:    https://dl-ssl.google.com/android/repository/extras/intel/addon.xml

  Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml

  Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml

  Parse XML:    https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml

  Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml

  Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml

  Parse XML:    https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml

  Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml

  Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml

  Parse XML:    https://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml

  Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/google_apis/sys-img.xml

  Validate XML: https://dl-ssl.google.com/android/repository/sys-img/google_apis/sys-img.xml

  Parse XML:    https://dl-ssl.google.com/android/repository/sys-img/google_apis/sys-img.xml

  Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml

  Failed to fetch URL https://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml/addon.xml

這裏有gdk,sysimg,addons等的配置文件地址。

wget或者瀏覽器獲得xml,好比:

打開 https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml

<sdk:system-image>
<!-- Generated at Thu Dec  5 14:04:05 2013 from git_klp-dev @ 938007 -->
<sdk:revision>2</sdk:revision>
<sdk:description>Android SDK Platform 4.4.2</sdk:description>
<sdk:api-level>19</sdk:api-level>
<sdk:abi>armeabi-v7a</sdk:abi>
<sdk:archives><sdk:archive>
<sdk:size>158478012</sdk:size>
<sdk:checksum type="sha1">e0d375397e28e3d5d9577a00132463a4696248e5</sdk:checksum>
<sdk:url>sysimg_armv7a-19_r02.zip</sdk:url>
</sdk:archive>
</sdk:archives>
<sdk:uses-license ref="android-sdk-license"/>
<sdk:tag-id>default</sdk:tag-id>
</sdk:system-image>
<sdk:system-image>

其中

<sdk:url>sysimg_armv7a-19_r02.zip</sdk:url>

就是sysimg arm -19的system image

而後下載地址就是xml地址去掉xml以後加上sysimg文件地址

也就是:https://dl-ssl.google.com/android/repository/sys-img/android/sysimg_armv7a-19_r02.zip

而後wget或者瀏覽器下載。

下載完解壓放在相應目錄

其中sdk放在sdkroot/platforms/下

sysimg放在sdkroot/system-images/android-xx下(xx表示版本好比上面的例子就是-19)

注意上面這些目錄能夠新建,而後容許android sdk manager看到installed狀態就說明成功手動安裝。

相關文章
相關標籤/搜索