從xml中提前android 5.0各種包的下載地址,xmlandroid

來源:互聯網
上載者:User

從xml中提前android 5.0各種包的,xmlandroid
Android整合式開發環境

   Platform                     Package                      Size                 MD5 Checksum

Windows 32-bit  adt-bundle-windows-x86-20140702.zip     370612741 bytes 9d2cf3770edbb49461788164af2331f3
Windows 64-bit  adt-bundle-windows-x86_64-20140702.zip  370763706 bytes bfc3472a12173422ba044182ac466c13
Mac OS X 64-bit adt-bundle-mac-x86_64-20140702.zip      320593642 bytes 24c51a1ad96c5f6d43821d978bf9866d
Linux 32-bit    adt-bundle-linux-x86-20140702.zip       371950735 bytes 5901c898bae4fe95476463a951b68404
Linux 64-bit    adt-bundle-linux-x86_64-20140702.zip    372259418 bytes 18a7c5778f96c0823349d465f58a0a36

https://dl.google.com/android/adt/adt-bundle-windows-x86-20140702.zip
https://dl.google.com/android/adt/adt-bundle-windows-x86_64-20140702.zip
https://dl.google.com/android/adt/adt-bundle-mac-x86_64-20140702.zip
https://dl.google.com/android/adt/adt-bundle-linux-x86-20140702.zip
https://dl.google.com/android/adt/adt-bundle-linux-x86_64-20140702.zip

我下載的是:
wget https://dl.google.com/android/adt/adt-bundle-linux-x86_64-20140702.zip


官網在國內被閉關鎖國的偉大的,正確的國家級的防火牆屏蔽了,所以是沒法訪問的。
所以自己百度一下下載方法。 或者用其他人下載好的。


Android SDK 國內鏡像代理
http://mirrors.neusoft.edu.cn/android/repository/

解決國內訪問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」。


http://wear.techbrood.com/
Android安卓開發官方文檔國內鏡像 - 踏得網

也可以修改hosts檔案,ip地址自己百度一下

提取的方法

但是通過Android SDK Manager下載實在太慢,可以

查看log, 把xml的的Fetching URL取出來,使用其他下載工具下載。

方法:grep 'Fetching URL'
結果:
Fetching URL: http://dl-ssl.google.com/android/repository/addon-6.xml
Fetching URL: http://dl-ssl.google.com/android/repository/addon.xml
Fetching URL: http://dl-ssl.google.com/android/repository/extras/intel/addon.xml
Fetching URL: http://dl-ssl.google.com/android/repository/repository-10.xml
Fetching URL: http://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml
Fetching URL: http://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml
Fetching URL: http://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml
Fetching URL: http://dl-ssl.google.com/android/repository/sys-img/google_apis/sys-img.xml
Fetching URL: http://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml
Fetching URL: http://dl-ssl.google.com/glass/gdk/addon.xml


因為android 5.0的api level是21,所以尋找api-level>21的關鍵字
grep 'api-level>21' *.xml

然後向下面尋找zip的軟體包, 然後把Fetching URL中,最後面的檔案名稱替換為這個zip檔案名稱可以了。

以下是我從xml中提取的android 5.0的https://dl-ssl.google.com/android/repository/android-21_r01.zip
https://dl-ssl.google.com/android/repository/samples-21_r03.zip
https://dl-ssl.google.com/android/repository/docs-21_r01.zip
https://dl-ssl.google.com/android/repository/sources-21_r01.zip
https://dl-ssl.google.com/android/repository/sys-img/android/sysimg_arm-21_r01.zip
https://dl-ssl.google.com/android/repository/sys-img/android/sysimg_x86-21_r01.zip
https://dl-ssl.google.com/android/repository/sys-img/android/sysimg_x86_64-21_r01.zip
https://dl-ssl.google.com/android/repository/sys-img/google_apis/sysimg_x86-21_r02.zip
https://dl-ssl.google.com/android/repository/sys-img/google_apis/sysimg_x86_64-21_r02.zip
https://dl-ssl.google.com/android/repository/sys-img/google_apis/sysimg_arm-21_r02.zip
http://dl-ssl.google.com/android/repository/sys-img/android-tv/sysimg_atv_x86-21_r01.zip
http://dl-ssl.google.com/android/repository/sys-img/android-tv/sysimg_atv_arm-21_r01.zip
http://dl-ssl.google.com/android/repository/google_apis-21_r01.zip

sdk tool:
http://dl-ssl.google.com/android/repository/tools_r23.0.5-linux.zip
http://dl-ssl.google.com/android/repository/platform-tools_r21-linux.zip
http://dl-ssl.google.com/android/repository/build-tools_r21.1.1-linux.zip

Extras:
http://dl-ssl.google.com/android/repository/support_r21.0.2.zip

下載後放到adt-bundle-linux-x86_64-20140702/sdk/temp下面, 再在Android SDK Manager中選擇這些要安裝的包即可,
注意備份,temp在安裝後,會自動刪除。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.