android 开发包的离线安装方式

来源:互联网 发布:java调用python 编辑:程序博客网 时间:2024/05/21 18:35

FROM:http://blog.csdn.net/DavidHsing/archive/2010/12/31/6108631.aspx

 

家里网速太慢,还是用离线方式来安装SDK吧

 

安装好eclipse后,在Android SDK and AVD Manager下下载android的开发包超级慢,有时候要搞好几个小时,面对这几k的速度,真的是无奈。 
为更快速安装,可以采取离线安装方法。即,先分别下载所需包,再安装。从网上搜来的链接,用迅雷或者别的下载工具打开,我在ubuntu下,用的是multiget。 
谷歌api的安装包 
http://dl-ssl.google.com/android/repository/google_apis-5_r01.zip  
http://dl-ssl.google.com/android/repository/google_apis-6_r01.zip 
http://dl-ssl.google.com/android/repository/google_apis-7_r01.zip 
http://dl-ssl.google.com/android/repository/google_apis-8_r02.zip 
Android开发包 
http://dl-ssl.google.com/android/repository/android-1.5_r04-linux.zip 
http://dl-ssl.google.com/android/repository/android-1.6_r03-linux.zip 
http://dl-ssl.google.com/android/repository/android-2.0_r01-linux.zip 
http://dl-ssl.google.com/android/repository/android-2.1_r02-linux.zip 
http://dl-ssl.google.com/android/repository/android-2.2_r02-linux.zip
http://dl-ssl.google.com/android/repository/android-2.3_r01-linux.zip
http://dl-ssl.google.com/android/repository/android-2.3.3_r01-linux.zip
http://dl-ssl.google.com/android/repository/android-3.0_r01-linux.zip
(ps:若是windows下,把linux改成windows便可)
(其实这个都是有规律的,如果有新版本了,只要把新版本的号替换,重新下载便可以了)
许可证 
http://dl-ssl.google.com/android/repository/market_licensing-r01.zip 
工具 
http://dl-ssl.google.com/android/repository/tools_r07-windows.zip 
文档 
http://dl-ssl.google.com/android/repository/docs-3.0_r01-linux.zip 
样例 
http://dl-ssl.google.com/android/repository/samples-2.2_r01-linux.zip 
http://dl-ssl.google.com/android/repository/samples-2.1_r01-linux.zip
http://dl-ssl.google.com/android/repository/samples-3.0_r01-linux.zip
五,解压文档到指定目录 
把android开头的文件解压到platforms目录下 
把goole_apis开头的文件解压到add-ons目录下 
把market_licensing-r01.zip解压到market_licensing目录下 
把docs-2.2_r01-linux.zip解压到docs 
把samples-2.2_r01-linux.zip和samples-2.1_r01-linux.zip解压到samples目录
需要改名字的地方注意: 
google_apis-6_r01 --> google_apis-6 
google_apis-7_r01 --> google_apis-7 
google_apis-8_r02 --> google_apis-8 android-2.1_r02  --> android-2.1 
android-2.2_r02  --> android-2.2   
samples-2.2_r01 --> samples-2.2 
samples-2.1_r01 --> samples-2.1 
新的更新包,也是如此,只是举例到此